Files
rustfs-s3-toolkit/docker/compose.proxy.yml
2025-09-30 17:51:17 +08:00

36 lines
1.2 KiB
YAML
Raw Permalink 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.
version: "3.9"
networks:
buildnet:
name: buildnet
services:
proxy:
image: metacubex/mihomo
container_name: build_proxy
restart: unless-stopped
networks: [buildnet]
# 若只在构建中用,不需要暴露 7890要本机调试可保留
# ports:
# - "7890:7890" # mixed-port for HTTP/SOCKS
# - "9090:9090" # API for local debug
volumes:
- ./config:/root/.config/mihomo:rw
environment:
# 规则源可选,镜像支持这些变量覆盖下载源
- GEOIP_URL=https://ghproxy.dockless.eu.org//https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb
- GEOSITE_URL=https://ghproxy.dockless.eu.org/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat
- SUBSCRIPTION_URL=https://app.mitce.net/?sid=303534&token=srveqevu
healthcheck:
test:
[
"CMD-SHELL",
"netstat -tln | grep -q ':7890'"
]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
profiles: ["build"] # 可选:默认不启动,专供构建流程
# use: docker compose -f docker/compose.proxy.yml --profile build up -d --wait proxy