Files
it-tools-relay/docker-compose.yml
T
jinghui 6cae4e9cf9 fix: 落盘 docker-compose.yml 并对齐 run/compose 部署参数(代理+add-host+NO_PROXY)
- README 声称的 compose 文件此前不存在,容器恢复全靠 inspect 复制
- 补齐 HTTPS_PROXY/NO_PROXY/--add-host/NET_ADMIN/DEFAULT_HOST_ROOT 实际参数
- BBC RSS 等境外源必须走宿主代理,否则 Network unreachable
2026-11-12 12:15:44 +08:00

34 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
it-tools-relay:
image: 192.168.68.19:3200/jinghui/it-tools-relay:latest
container_name: it-tools-relay
restart: always
ports:
- "8091:8091"
env_file:
- .env
environment:
# 宿主数据目录(/hostfs、宿主路径访问类接口用)
- DEFAULT_HOST_ROOT=/vol3/1000/HD3/docker/it-tools-relay/data
# 容器出网走宿主 Mihomo 代理(BBC RSS 等境外源直连不可达,必须走代理)
- HTTPS_PROXY=http://host.docker.internal:7890
- HTTP_PROXY=http://host.docker.internal:7890
# 内网服务(NewAPI/OCR/授权中心)直连,不走代理
- NO_PROXY=localhost,127.0.0.1,192.168.68.19
volumes:
# 数据持久化:试用记录 / 用量库 / 用户库 / news.json
- ./data:/app/data
cap_add:
- NET_ADMIN
extra_hosts:
# 代理/宿主服务访问依赖此解析(缺失会导致出网 Network unreachable)
- "host.docker.internal:host-gateway"
networks:
- ittools-net
networks:
# 必须接入既有 ittools-net,供 it-tools 的 nginx 按容器名反代;
# 已存在则必须 external=true,否则 compose 会重建同名网络导致孤立
ittools-net:
external: true