docker-compose.yml
· 626 B · YAML
Raw
version: '3.5'
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
network_mode: 'host'
volumes:
- ./config:/config
- ./cache:/cache
- /storage/meida:/media:ro
# - /path/to/media:/media
# - /path/to/media2:/media2:ro
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"
1 | version: '3.5' |
2 | services: |
3 | jellyfin: |
4 | image: jellyfin/jellyfin |
5 | container_name: jellyfin |
6 | user: 1000:1000 |
7 | network_mode: 'host' |
8 | volumes: |
9 | - ./config:/config |
10 | - ./cache:/cache |
11 | - /storage/meida:/media:ro |
12 | # - /path/to/media:/media |
13 | # - /path/to/media2:/media2:ro |
14 | restart: 'unless-stopped' |
15 | # Optional - alternative address used for autodiscovery |
16 | # environment: |
17 | # - JELLYFIN_PublishedServerUrl=http://example.com |
18 | # Optional - may be necessary for docker healthcheck to pass if running in host network mode |
19 | extra_hosts: |
20 | - "host.docker.internal:host-gateway" |