From 5eb5020a6b4373df6298915c243c59248738123e Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 6 May 2022 17:10:52 +0100 Subject: [PATCH] Initial Jellyfin config --- .env.sample | 3 +++ compose.yml | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index 82529bf..570b13b 100644 --- a/.env.sample +++ b/.env.sample @@ -6,3 +6,6 @@ DOMAIN=jellyfin.example.com #EXTRA_DOMAINS=', `www.jellyfin.example.com`' LETS_ENCRYPT_ENV=production + +# Set to an existing path on the host, and define a path inside the container +EXTRA_VOLUME=/dev/null:/tmp/.dummy diff --git a/compose.yml b/compose.yml index a2c3805..77590e7 100644 --- a/compose.yml +++ b/compose.yml @@ -3,9 +3,15 @@ version: "3.8" services: app: - image: nginx:1.20.0 + image: jellyfin/jellyfin:10.7.7 + environment: + - JELLYFIN_PublishedServerUrl=https://${DOMAIN} networks: - proxy + volumes: + - jellyfin_config:/config + - jellyfin_cache:/cache + - ${EXTRA_VOLUME} deploy: restart_policy: condition: on-failure @@ -27,6 +33,10 @@ services: retries: 10 start_period: 1m +volumes: + jellyfin_config: + jellyfin_cache: + networks: proxy: external: true