#81 Init Jellyfin

This commit is contained in:
Joey Hafner 2023-02-02 14:17:07 -08:00
parent ac4d66d87f
commit 56dd6c267f
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DOCKER_DATA=/mnt/data/jellyfin
MEDIA_DIR=/mnt/nas/media

View File

@ -0,0 +1,42 @@
version: "3"
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin
container_name: jellyfin_jellyfin
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
restart: "no"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
networks:
- web
ports:
- 8096:8096
#- 8920:8920
#- 7359:7359/udp
#- 1900:1900/udp
env_file:
- jellyfin.env
volumes:
- "${MEDIA_DIR}/Video/Movies:/movies"
- "${MEDIA_DIR}/Video/Shows:/shows"
- "${DOCKER_DATA}:/config"
labels:
- traefik.http.routers.jellyfin.rule=Host(`jellyfin.jafner.net`)
- traefik.http.routers.jellyfin.tls.certresolver=lets-encrypt
- traefik.http.services.jellyfin.loadbalancer.server.port=8096
networks:
web:
external: true

View File

@ -0,0 +1,4 @@
PUID=1000
PGID=1000
TZ=America/Los_Angeles
#JELLYFIN_PublishedServerUrl=