This commit is contained in:
2026-07-09 16:45:17 +03:00
parent 5c7a9710f3
commit da24ed8ba7
23 changed files with 1542 additions and 358 deletions

View File

@@ -5,11 +5,17 @@ services:
env_file:
- .env
environment:
DB_HOST: db
DB_PORT: 3306
HTTP_PROXY: http://mihomo:7890
HTTPS_PROXY: http://mihomo:7890
ALL_PROXY: http://mihomo:7890
http_proxy: http://mihomo:7890
https_proxy: http://mihomo:7890
all_proxy: http://mihomo:7890
NO_PROXY: localhost,127.0.0.1,::1,db,mihomo,subconverter
no_proxy: localhost,127.0.0.1,::1,db,mihomo,subconverter
depends_on:
db:
condition: service_healthy
mihomo:
condition: service_started
db:
image: mariadb:11.7
@@ -27,5 +33,29 @@ services:
timeout: 5s
retries: 10
subconverter:
image: tindy2013/subconverter:latest
container_name: subconverter
restart: unless-stopped
mihomo:
image: metacubex/mihomo:Alpha
container_name: mihomo
depends_on:
- subconverter
volumes:
- ./mihomo:/root/.config/mihomo
ports:
- "7890:7890/tcp"
- "7890:7890/udp"
- "9090:9090/tcp"
dns:
- 1.1.1.1
- 1.0.0.1
- 9.9.9.9
command:
- "-d"
- "/root/.config/mihomo"
restart: unless-stopped
volumes:
mariadb_data: