diff --git a/jellyfin/.env.sample b/jellyfin/.env.sample new file mode 100644 index 0000000..bab9065 --- /dev/null +++ b/jellyfin/.env.sample @@ -0,0 +1,10 @@ +# Uncomment and change the following variables if you want to use them. +#RESTART=unless-stopped +#SYNOLOGY_VOLUME=volume1 +#STACK_NAME=jellyfin +#UID=1024 +#GID=101 +#JELLYFIN_CONTAINER_NAME=Jellyfin +#JELLYFIN_TAG=latest +#JELLYFIN_PORT=8096 +#JELLYFIN_PublishedServerUrl=http://example.com diff --git a/jellyfin/compose.yml b/jellyfin/compose.yml new file mode 100644 index 0000000..6e58d6f --- /dev/null +++ b/jellyfin/compose.yml @@ -0,0 +1,16 @@ +services: + # Jellyfin + jellyfin: + container_name: ${JELLYFIN_CONTAINER_NAME:-Jellyfin} + image: jellyfin/jellyfin:${JELLYFIN_TAG:-latest} + user: ${UID:-1024}:${GID:-101} + restart: ${RESTART:-unless-stopped} + environment: + JELLYFIN_PublishedServerUrl: ${JELLYFIN_PublishedServerUrl:-http://example.com} + ports: + - ${JELLYFIN_PORT:-8096}:8096 + volumes: + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-jellyfin}/${JELLYFIN_CONTAINER_NAME:-Jellyfin}/config:/config + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-jellyfin}/${JELLYFIN_CONTAINER_NAME:-Jellyfin}/cache:/cache + - /${SYNOLOGY_VOLUME:-volume1}/music:/music:ro + - /${SYNOLOGY_VOLUME:-volume1}/video:/video:ro