2025-07-02 17:21:30 +00:00
|
|
|
services:
|
|
|
|
|
jellyfin:
|
|
|
|
|
image: jellyfin/jellyfin:latest
|
2025-07-02 17:51:19 +00:00
|
|
|
user: "${UID:-1000}:${GID:-1000}"
|
|
|
|
|
network_mode: 'host'
|
2025-07-02 17:21:30 +00:00
|
|
|
volumes:
|
2025-07-02 17:51:19 +00:00
|
|
|
- ${CONFIG_DIR:-/srv/jellyfin/config}:/config
|
|
|
|
|
- ${CACHE_DIR:-/srv/jellyfin/cache}:/cache
|
|
|
|
|
- type: bind
|
|
|
|
|
source: ${MOVIES_DIR:-/mnt/media1}
|
|
|
|
|
target: /media
|
|
|
|
|
- type: bind
|
|
|
|
|
source: ${SERIES_DIR:-/mnt/media2}
|
|
|
|
|
target: /media2
|
|
|
|
|
read_only: true
|
|
|
|
|
- type: bind
|
|
|
|
|
source: ${FONTS_DIR:-/usr/share/fonts/custom}
|
|
|
|
|
target: /usr/local/share/fonts/custom
|
|
|
|
|
read_only: true
|
|
|
|
|
restart: 'unless-stopped'
|
2025-07-02 17:21:30 +00:00
|
|
|
environment:
|
2025-07-02 17:51:19 +00:00
|
|
|
- JELLYFIN_PublishedServerUrl=${JELLYFIN_URL}
|
2025-07-02 17:21:30 +00:00
|
|
|
- TZ=${TZ:-Europe/Berlin}
|
2025-07-02 17:51:19 +00:00
|
|
|
extra_hosts:
|
|
|
|
|
- 'host.docker.internal:host-gateway'
|