# vi: ft=yaml version: '3.5' networks: traefik: external: true volumes: media: driver_opts: type: "nfs" o: "addr=lewis.dmz,nolock,soft,rw" device: ":/mnt/data/nfs/media" config: driver_opts: type: "nfs" o: "addr=lewis.dmz,nolock,soft,rw" device: ":/mnt/data/nfs/jellyfin/config" cache: services: jellyfin: image: jellyfin/jellyfin # user: uid:gid network_mode: 'host' volumes: - cache:/cache - type: volume source: config target: /config volume: nocopy: true - type: volume source: media target: /media volume: nocopy: true # - /path/to/media2:/media2:ro # Optional - alternative address used for autodiscovery environment: - JELLYFIN_PublishedServerUrl=http://media.kun.is:444 # Optional - may be necessary for docker healthcheck to pass if running in host network mode # extra_hosts: # - "host.docker.internal:host-gateway" networks: - traefik deploy: labels: - traefik.enable=true - traefik.http.routers.jellyfin.entrypoints=localsecure - traefik.http.routers.jellyfin.rule=Host(`media.kun.is`) - traefik.http.routers.jellyfin.tls=true - traefik.http.routers.jellyfin.tls.certresolver=letsencrypt - traefik.http.routers.jellyfin.service=jellyfin - traefik.http.services.jellyfin.loadbalancer.server.port=8096 - traefik.docker.network=traefik