-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (58 loc) · 1.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (58 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
ytdl-bot:
image: ghcr.io/treehd/ytdl:latest
container_name: ytdl-bot
restart: unless-stopped
mem_limit: 512m
memswap_limit: 1g
volumes:
- ./downloads:/app/downloads
- ./data:/app/data
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
telegram-bot-api:
condition: service_healthy
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
container_name: telegram-bot-api
restart: unless-stopped
user: root
env_file:
- .env
volumes:
- ./telegram-bot-api-data:/var/lib/telegram-bot-api
- ./downloads:/app/downloads
ports:
- "8081:8081"
healthcheck:
test: ["CMD-SHELL", "wget -T 3 -S -qO /dev/null http://$(hostname -i):8081/bot 2>&1 | grep -q 'HTTP/'"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
labels:
- "autoheal=true"
autoheal:
image: willfarrell/autoheal:latest
container_name: autoheal
restart: unless-stopped
environment:
- AUTOHEAL_CONTAINER_LABEL=autoheal
- AUTOHEAL_INTERVAL=30
- AUTOHEAL_START_PERIOD=60
volumes:
- /var/run/docker.sock:/var/run/docker.sock
warp-proxy:
image: ghcr.io/treehd/ytdl-warp-proxy:latest
container_name: warp-proxy
restart: unless-stopped
environment:
- WARP_SOCKS_PORT=${WARP_SOCKS_PORT:-1080}
- WARP_USERNAME=${WARP_USERNAME:-warpuser}
- WARP_PASSWORD=${WARP_PASSWORD:-warppass}
# Web UI / HTTP Trigger listener port for IP Rotation
# Not exposed externally to protect it
# Accessible internally at http://warp-proxy:9090