# Example compose for plex-language-sync. See the README for all configuration options and hardening. services: plex-language-sync: image: ghcr.io/cplieger/plex-language-sync:latest container_name: plex-language-sync restart: unless-stopped stop_grace_period: 20s # time to save what it learned on stop. Docker's 10s default is too short # Run "sudo mkdir -p /opt/appdata/plex-language-sync && sudo chown 1000:1000 /opt/appdata/plex-language-sync" # before the first start, or nothing it learns is saved. If .env sets PUID and PGID, use those numbers. user: "${PUID:-1000}:${PGID:-1000}" environment: - PLEX_URL # from .env, the address you open Plex at, such as http://192.0.2.10:32400 - PLEX_TOKEN # from .env, the server owner's Plex token, or set PLEX_TOKEN_FILE to a Docker secret - "UPDATE_LEVEL=show" # show = whole show, season = current season only - "UPDATE_STRATEGY=all" # all = every episode, next = only the episodes after the one you played volumes: - "/opt/appdata/plex-language-sync:/config" # what it learns, the shared users' tokens and its schedule