docker-compose.yml - reverse proxy the jellyfin container as virtual host

we need to take it of host network mode, add it to the proxy-tier and
default networks, then enable proxying and lets-encrypt.

Tested, works.
This commit is contained in:
Nick Stokoe
2021-12-02 14:39:06 +00:00
parent 15ce90e098
commit 12f3fcbaaf
3 changed files with 10 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
nextcloud_hostname: nc.noodlefactory.co.uk nextcloud_hostname: nc.noodlefactory.co.uk
nextcloud_db_user: nextcloud nextcloud_db_user: nextcloud
nextcloud_db: nextcloud nextcloud_db: nextcloud
jellyfin_hostname: jf.noodlefactory.co.uk
letsencrypt_email: webmaster@noodlefactory.co.uk letsencrypt_email: webmaster@noodlefactory.co.uk
docker_compose_base_dir: /opt/docker-compose docker_compose_base_dir: /opt/docker-compose
firewall_ports: firewall_ports:

View File

@@ -124,9 +124,11 @@ services:
- jellyfin_config:/config - jellyfin_config:/config
- jellyfin_cache:/cache - jellyfin_cache:/cache
- minidlna_data:/media - minidlna_data:/media
network_mode: host networks:
environment: - proxy-tier
- JELLYFIN_PublishedServerUrl=http://snackpot.local - default
env_file:
- jellyfin.env
minidlna: minidlna:
image: vladgh/minidlna:latest image: vladgh/minidlna:latest

View File

@@ -0,0 +1,4 @@
VIRTUAL_HOST={{ jellyfin_hostname }}
JELLYFIN_PublishedServerUrl=https://{{ jellyfin_hostname }}/
LETSENCRYPT_HOST={{ jellyfin_hostname }}
LETSENCRYPT_EMAIL={{ letsencrypt_email }}