services: jellyfin: image: jellyfin/jellyfin:latest container_name: jellyfin environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} volumes: - /path/to/jellyfin/config:/config - /path/to/jellyfin/cache:/cache - /path/to/media:/data - /path/to/transcodes/jellyfin:/transcodes ports: - ${HTTP_PORT}:8096 restart: unless-stopped healthcheck: test: [ "CMD-SHELL", "curl -fsS http://localhost:8096/health | grep -q Healthy", ] interval: 30s timeout: 10s retries: 5 start_period: 60s networks: - media-net networks: media-net: external: true