# Preflight uses this service's environment and volumes: # docker compose -f docker-compose.yml.example run --rm --no-deps emby-watchparty python -m backend.migration_preflight --root /app --target production --deployment docker # Generated from deploy/schema.json; do not edit this file. # Copy it to docker-compose.yml and edit the copy. # Schema-Version: 1 # Schema-SHA256: 9a576c7d9b21e9d2e66ef602ce5e1180538f99864d4de041aa72e6c63b278a5c # Image tags: :devel and :nightly track the current 3.0 prerelease. :latest is # still the 2.1.x stable line, and :3 / :3.0 are published for stable releases # only, so they do not exist yet on the 3.0 line. # Prepare the host source of /app/config.json as a FILE before the first start. # Run with the container stopped, at the actual host path used by the mount. # Initialize only a missing or zero-byte file with {}; preserve every nonempty config. # Do not use touch or allow Docker to create a directory at that file path: # if [ -e config.json ] && [ ! -f config.json ]; then # printf '%s\n' 'config.json must be a file; correct the host path.' >&2 # exit 1 # fi # if [ ! -e config.json ] || [ ! -s config.json ]; then # printf '%s\n' '{}' > config.json # fi # If a directory was created there, inspect and preserve it before correcting # that path and recreating the container. Never delete the appdata directory. # Upgrading from 2.1.x? Keep your existing config.json; do not create a new one. # Change only the left side of the ports mapping to publish a different host # port. The container always binds 0.0.0.0:5000. services: emby-watchparty: image: ghcr.io/oratorian/emby-watchparty:devel container_name: emby-watchparty environment: WATCH_PARTY_BIND: 0.0.0.0 WATCH_PARTY_PORT: '5000' # Leave unset unless the app is served under a subpath. Setting this to a # path you are not actually proxying makes every URL 404. APP_PREFIX: ${APP_PREFIX:-} # Now genuinely governs the session cookie lifetime. The default 86400 asks # people to rejoin after 24h idle; set 1209600 to keep 2.x's 14 days. SESSION_EXPIRY: ${SESSION_EXPIRY:-86400} # Choose emby or jellyfin explicitly. Changing provider requires a restart. MEDIA_SERVER_TYPE: ${MEDIA_SERVER_TYPE:-emby} # One URL for both providers. The address was never provider-specific, only # MEDIA_SERVER_TYPE is. Point this at whichever server that names. MEDIA_SERVER_URL: ${MEDIA_SERVER_URL:-http://emby:8096} # One key for both providers, issued by whichever server MEDIA_SERVER_TYPE # names. Required in production. MEDIA_SERVER_API_KEY: ${MEDIA_SERVER_API_KEY:-} APP_ENV: ${APP_ENV:-production} # Generate ONCE with `openssl rand -hex 32` and keep it. An ephemeral key is # used when empty, which kicks every user out on every restart. SESSION_SECRET: ${SESSION_SECRET:-} # Comma-separated origin allowlist for Socket.IO. Production rejects '*'. CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-} # Mandatory when BEHIND_PROXY=true; this is what restores per-viewer limits. # Comma separated. 172.16.0.0/12 covers the default Docker bridge networks, # which is where a proxy container connects from; use 127.0.0.1/32 for a # proxy running on the host. TRUSTED_PROXY_CIDRS: ${TRUSTED_PROXY_CIDRS:-} # Boot setting; changes need a restart and it is not in the admin panel. # Production requires it enabled. If you turned it off in 2.x Admin -> # Security, that value carries over and you must set true here. ENABLE_HLS_TOKEN_VALIDATION: ${ENABLE_HLS_TOKEN_VALIDATION:-true} # Set true when the app is reached over HTTPS, false for a plain-HTTP LAN # address. A Secure cookie is silently discarded by the browser over http://, # which logs everyone out on the next request rather than failing loudly. # Production also requires true, so a plain-HTTP deployment needs a TLS # terminator in front. # SESSION_COOKIE_SECURE: ${SESSION_COOKIE_SECURE:-} # Required in production, and deliberately has no default: rate limiting keys # on the connecting address, so behind a proxy that is the proxy for every # viewer and they all share one bucket. Guessing wrong is silent, so 3.0 # refuses to boot rather than guess. Set true or false explicitly. # BEHIND_PROXY: ${BEHIND_PROXY:-} ports: - 5000:5000 volumes: - ./data:/app/data - ./images/avatars:/app/images/avatars - ./logs:/app/logs - ./config.json:/app/config.json restart: unless-stopped