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:
@@ -8,6 +8,7 @@
|
||||
nextcloud_hostname: nc.noodlefactory.co.uk
|
||||
nextcloud_db_user: nextcloud
|
||||
nextcloud_db: nextcloud
|
||||
jellyfin_hostname: jf.noodlefactory.co.uk
|
||||
letsencrypt_email: webmaster@noodlefactory.co.uk
|
||||
docker_compose_base_dir: /opt/docker-compose
|
||||
firewall_ports:
|
||||
|
||||
@@ -124,9 +124,11 @@ services:
|
||||
- jellyfin_config:/config
|
||||
- jellyfin_cache:/cache
|
||||
- minidlna_data:/media
|
||||
network_mode: host
|
||||
environment:
|
||||
- JELLYFIN_PublishedServerUrl=http://snackpot.local
|
||||
networks:
|
||||
- proxy-tier
|
||||
- default
|
||||
env_file:
|
||||
- jellyfin.env
|
||||
|
||||
minidlna:
|
||||
image: vladgh/minidlna:latest
|
||||
|
||||
4
templates/docker-compose/jellyfin.env.j2
Normal file
4
templates/docker-compose/jellyfin.env.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
VIRTUAL_HOST={{ jellyfin_hostname }}
|
||||
JELLYFIN_PublishedServerUrl=https://{{ jellyfin_hostname }}/
|
||||
LETSENCRYPT_HOST={{ jellyfin_hostname }}
|
||||
LETSENCRYPT_EMAIL={{ letsencrypt_email }}
|
||||
Reference in New Issue
Block a user