dotfiles/docker/jellyfin/docker-compose.yaml

41 lines
1.3 KiB
YAML
Raw Normal View History

2021-03-25 12:50:10 +02:00
version: "2.3"
services:
jellyfin:
image: jellyfin/jellyfin
2020-02-01 13:11:29 +02:00
container_name: jellyfin
2020-02-10 00:31:05 +02:00
environment:
- TZ=Europe/Helsinki
2021-03-25 12:50:10 +02:00
- NVIDIA_DRIVER_CAPABILITIES=all
- NVIDIA_VISIBLE_DEVICES=all
2020-02-13 21:24:50 +02:00
ports:
2020-02-13 23:57:30 +02:00
- "8096:8096"
2020-02-13 21:24:50 +02:00
networks:
- proxy
2020-07-11 14:24:47 +03:00
restart: unless-stopped
volumes:
- /docker/jellyfin/config:/config
- /docker/jellyfin/cache:/cache
- /mnt/Storage/Media:/media
2020-02-04 17:23:04 +02:00
- /etc/localtime:/etc/localtime:ro
2021-03-25 12:50:10 +02:00
devices:
- /dev/dri:/dev/dri
2020-02-13 21:24:50 +02:00
labels:
2020-02-13 23:57:30 +02:00
- "traefik.enable=true"
2020-02-13 21:24:50 +02:00
2020-02-13 23:57:30 +02:00
- "traefik.http.routers.jellyfin-redirect.entrypoints=http"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.jellyfin-redirect.rule=Host(`jellyfin.korhonen.cc`)"
2020-02-13 23:57:30 +02:00
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.jellyfin-redirect.middlewares=http2https"
2020-02-13 21:24:50 +02:00
2020-02-13 23:57:30 +02:00
- "traefik.http.routers.jellyfin.entrypoints=https"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.korhonen.cc`)"
2020-02-13 23:57:30 +02:00
- "traefik.http.routers.jellyfin.tls=true"
- "traefik.http.routers.jellyfin.tls.certresolver=http"
- "traefik.http.routers.jellyfin.service=jellyfin"
- "traefik.docker.network=proxy"
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
2020-02-13 21:24:50 +02:00
networks:
proxy:
external: true