services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin-${USER_ID}-${IP}-${PORT}-${DOMAIN} user: ${USER_ID}:${USER_ID} ports: - ${IP}:${PORT}:8096 volumes: - ${DATA_DIR}/config:/config - ${DATA_DIR}/cache:/cache - ${DATA_DIR}/media:/media restart: 'unless-stopped' # Optional - alternative address used for autodiscovery environment: - JELLYFIN_PublishedServerUrl=${SCHEME}://${DOMAIN}