不知道是不是我容器装载配置错误services:
clash:
image: dreamacro/clash
container_name: clash
volumes:
- /vol2/1000/Docker/clash:/etc/clash # 将整个目录挂载到容器内
ports:
- "7890:7890" # SOCKS 代理端口
- "7891:7891" # HTTP 代理端口
restart: always
yacd:
image: haishanh/yacd
container_name: yacd
volumes:
- /vol2/1000/Docker/clash:/app # 将整个目录挂载到容器内
ports:
- "9090:9090" # 将宿主机的 9090 端口映射到容器的 9090 端口
environment:
- TZ=Asia/Shanghai # 设置时区
depends_on:
- clash
restart: always
|