Files
RemnaWaveBOT/docker-compose.yml.bak-20260709055609
2026-07-09 16:45:17 +03:00

62 lines
1.5 KiB
Plaintext

services:
bot:
build: .
restart: unless-stopped
env_file:
- .env
environment:
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:
mihomo:
condition: service_started
db:
image: mariadb:11.7
restart: unless-stopped
environment:
MARIADB_DATABASE: ${DB_NAME:-telegabot}
MARIADB_USER: ${DB_USER:-telegabot}
MARIADB_PASSWORD: ${DB_PASSWORD:-telegabot_password}
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-root_password}
volumes:
- mariadb_data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -p$$MARIADB_ROOT_PASSWORD --silent"]
interval: 10s
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: