add jellyfin

This commit is contained in:
Waylon Walker 2023-07-15 13:51:59 -05:00
parent a538fa8981
commit 0d8c2ac52d
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -0,0 +1,43 @@
version: "3.5"
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
restart: unless-stopped
security_opt:
- no-new-privileges:true
stdin_open: true # docker run -i
tty: true # docker run -t
# network_mode: "host"
# networks:
# - proxy
# user: uid:gid
ports:
- 8096:8096
volumes:
- /tank/jellyfin/config:/config
- /tank/jellyfin/cache:/cache
- /tank/jellyfin/media:/media
- /tank/jellyfin/media2:/media2:ro
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=https://jellyfin.${URL}
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- "host.docker.internal:host-gateway"
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.jellyfin.entrypoints=http"
# - "traefik.http.routers.jellyfin.rule=Host(`jellyfin.${URL}`)"
# - "traefik.http.middlewares.jellyfin-https-redirect.redirectscheme.scheme=https"
# - "traefik.http.routers.jellyfin.middlewares=jellyfin-https-redirect"
# - "traefik.http.routers.jellyfin-secure.entrypoints=https"
# - "traefik.http.routers.jellyfin-secure.rule=Host(`jellyfin.${URL}`)"
# - "traefik.http.routers.jellyfin-secure.tls=true"
# - "traefik.http.routers.jellyfin-secure.service=jellyfin"
# - "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
# - "traefik.docker.network=proxy"
# networks:
# proxy:
# external: true