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