update build action
This commit is contained in:
36
docker/compose.proxy.yml
Normal file
36
docker/compose.proxy.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
Reference in New Issue
Block a user