forked from tgbot-collection/ytdlbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (46 loc) · 1.18 KB
/
docker-compose.yml
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
version: '3.1'
services:
socat:
image: bennythink/socat
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
entrypoint: [ "socat", "tcp-listen:2375,fork,reuseaddr","unix-connect:/var/run/docker.sock" ]
redis:
image: redis:alpine
restart: always
logging:
driver: none
mysql:
image: ubuntu/mysql:8.0-20.04_beta
restart: always
volumes:
- ./db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 'root'
logging:
driver: none
ytdl:
image: bennythink/ytdlbot
env_file:
- env/ytdl.env
restart: always
depends_on:
- socat
- redis
volumes:
- ./data/instagram.com_cookies.txt:/ytdlbot/ytdlbot/instagram.com_cookies.txt
- ./data/vnstat/:/var/lib/vnstat/
flower:
image: bennythink/ytdlbot
env_file:
- env/ytdl.env
restart: on-failure
command: [ "/usr/local/bin/celery",
"-A", "flower_tasks", "flower",
"--basic_auth=benny:123456",
"--address=0.0.0.0", "--persistent","--purge_offline_workers=3600" ]
volumes:
- ./data/flower:/ytdlbot/ytdlbot/flower
ports:
- "5555:5555"