docker-compose/jellyfin/docker-compose.yml

39 lines
876 B
YAML
Raw Normal View History

2022-12-24 03:38:43 +02:00
version: '3.5'
volumes:
media:
driver_opts:
type: "nfs"
o: "addr=192.168.1.245,nolock,soft,rw"
device: ":/mnt/data/media"
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1001
network_mode: 'host'
volumes:
- ./config:/config
- ./cache:/cache
- type: volume
source: media
target: /media
volume:
nocopy: true
#ports:
# - "8096:8096/tcp"
# - "8920:8920/tcp"
# - "1900:1900/udp"
# - "7359:7359/udp"
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"