From e3eed81005a5d9759e4423f47a66975be0eadb07 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 2 Feb 2023 14:17:07 -0800 Subject: [PATCH] #81 Init Jellyfin --- server/config/jellyfin/.env | 2 ++ server/config/jellyfin/docker-compose.yml | 42 +++++++++++++++++++++++ server/config/jellyfin/jellyfin.env | 4 +++ 3 files changed, 48 insertions(+) create mode 100644 server/config/jellyfin/.env create mode 100644 server/config/jellyfin/docker-compose.yml create mode 100644 server/config/jellyfin/jellyfin.env diff --git a/server/config/jellyfin/.env b/server/config/jellyfin/.env new file mode 100644 index 0000000..c3152c2 --- /dev/null +++ b/server/config/jellyfin/.env @@ -0,0 +1,2 @@ +DOCKER_DATA=/mnt/data/jellyfin +MEDIA_DIR=/mnt/nas/media \ No newline at end of file diff --git a/server/config/jellyfin/docker-compose.yml b/server/config/jellyfin/docker-compose.yml new file mode 100644 index 0000000..83f2498 --- /dev/null +++ b/server/config/jellyfin/docker-compose.yml @@ -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 diff --git a/server/config/jellyfin/jellyfin.env b/server/config/jellyfin/jellyfin.env new file mode 100644 index 0000000..2a070f6 --- /dev/null +++ b/server/config/jellyfin/jellyfin.env @@ -0,0 +1,4 @@ +PUID=1000 +PGID=1000 +TZ=America/Los_Angeles +#JELLYFIN_PublishedServerUrl= \ No newline at end of file