This commit is contained in:
2025-11-06 01:58:02 +08:00
parent 6d61b2b188
commit 53b9cccd51
5 changed files with 10 additions and 18 deletions

View File

@@ -4,14 +4,12 @@ services:
container_name: jellyfin
network_mode: 'host'
volumes:
# manual replace
- $HOME/.config/jellyfin:/config
- /opt/jellyfin:/config
- jellyfin-cache:/cache
- type: bind
source: /media
target: /media
# Optional - extra fonts to be used during transcoding with subtitle burn-in
# just use Noto fonts.
- type: bind
source: /usr/share/fonts/opentype
target: /usr/local/share/fonts/custom
@@ -20,9 +18,8 @@ services:
- /dev/dri:/dev/dri
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
# hidden.
environment:
- JELLYFIN_PublishedServerUrl=https://blablabla.local
# environment:
# - JELLYFIN_PublishedServerUrl=
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- 'host.docker.internal:host-gateway'