version: "3"
services:
nas-tools:
image: linyuan0213/nas-tools:latest
# ports:
# - 3000:3000 # 默认的webui控制端口,默认为3000,本处使用host网络,且没有端口占用,所以不做修改
volumes:
- /vol1/1000/Docker/nastools/config:/config # 冒号左边请修改为你想保存配置的路径
- /vol1/1000/media:/vol1/1000/media # 这里我选择整个路径映射
- PUID=1000 # 想切换为哪个用户来运行程序,该用户的uid
- PGID=1000 # 想切换为哪个用户来运行程序,该用户的gid
- UMASK=022 #掩码权限,默认000,可以考虑设置为022
- NT_PORT=3000 # 不修改
extra_hosts:
- "api.themoviedb.org:13.226.61.77"
- "api.themoviedb.org:13.35.210.98"
- "api.themoviedb.org:103.246.246.144"
- "themoviedb.org:143.244.50.210"
- "themoviedb.org:143.244.50.89"
- "api.thetvdb.com:192.241.234.54"
- "thetvdb.com:13.35.222.88"
- "thetvdb.com:18.154.130.110"
restart: always
network_mode: host
hostname: nas-tools
container_name: nas-tools
healthcheck:
test: "wget -qO- http://localhost:3000/healthcheck || exit 1" # 检测方式
interval: 30s # 多次检测间隔多久 (默认: 30s)
timeout: 30s # 超时时间 (默认: 30s)
retries: 3 # 尝试次数(默认: 3)
start_period: 40s # 容器启动后多久开始检测 (默认: 0s)
depends_on:
- ocr
#以下内容不做修改
ocr:
image: linyuan0213/nas-tools-ocr:latest
container_name: nas-tools-ocr
ports:
- 9300:9300
restart: always
老哥 我架构提示我执行结果错误 |