-
Notifications
You must be signed in to change notification settings - Fork 75
/
docker-compose.yml
42 lines (40 loc) · 1.45 KB
/
docker-compose.yml
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
35
36
37
38
39
40
41
42
version: "3"
services:
nas-tools:
image: linyuan0213/nas-tools:latest
ports:
- 3000:3000 # 默认的webui控制端口
volumes:
- ./config:/config # 冒号左边请修改为你想保存配置的路径
- /你的媒体目录:/你想设置的容器内能见到的目录 # 媒体目录,多个目录需要分别映射进来,需要满足配置文件说明中的要求
environment:
- PUID=0 # 想切换为哪个用户来运行程序,该用户的uid
- PGID=0 # 想切换为哪个用户来运行程序,该用户的gid
- UMASK=000 # 掩码权限,默认000,可以考虑设置为022
- NT_PORT=3000 # 不填写 默认3000
restart: always
network_mode: bridge
hostname: nas-tools
container_name: nas-tools
healthcheck:
test: "wget -qO- http://localhost:3000/healthcheck || exit 1" # 检测方式
interval: 30s # 多次检测间隔多久 (default: 30s)
timeout: 30s # 超时时间 (default: 30s)
retries: 3 # 尝试次数(default: 3)
start_period: 40s # 容器启动后多久开始检测 (default: 0s)
depends_on:
- ocr
- chrome
ocr:
image: linyuan0213/nas-tools-ocr:latest
container_name: nas-tools-ocr
ports:
- 9300:9300
restart: always
chrome:
image: linyuan0213/nas-tools-chrome:latest
container_name: nas-tools-chrome
shm_size: 2g # 共享内存大小
ports:
- 9850:9850
restart: always