homeserver/jellyfin/docker-compose.yml

37 lines
1.1 KiB
YAML

services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
# network_mode: 'host'
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
volumes:
- ./config:/config
- ./cache:/cache
- type: bind
source: /media/extension/music
target: /music
- type: bind
source: /media/extension/video
target: /video
- type: bind
source: /media/extension/ebooks
target: /ebooks
# read_only: true
# Optional - extra fonts to be used during transcoding with subtitle burn-in
# - type: bind
# source: /path/to/fonts
# target: /usr/local/share/fonts/custom
# read_only: true
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=http://example.com
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- 'host.docker.internal:host-gateway'