1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
version: "3.9" # 或者使用你想要的Compose文件版本,例如 "3.8", "3.7" 等
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
#user: 1000:1000
network_mode: 'host'
volumes:
- ./config:/config
- ./cache:/cache
- /mnt/p1:/media
#- type: bind
# source: ./media
# target: /media
#- type: bind
# source: ./media2
# target: /media2
# 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
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
#extra_hosts:
# - 'host.docker.internal:host-gateway'
|