ytdlbot/docker-compose.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2021-08-29 02:19:49 +00:00
version: '3.1'
services:
socat:
image: jmb12686/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
2021-12-30 06:32:55 +00:00
ports:
- "192.168.6.1:6379:6379"
2021-08-29 02:19:49 +00:00
2021-12-29 08:57:06 +00:00
mysql:
2021-12-30 07:50:16 +00:00
image: mysql:5.7
2021-12-29 08:57:06 +00:00
restart: always
volumes:
- ./db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 'root'
logging:
driver: none
2021-12-30 06:32:55 +00:00
ports:
- "192.168.6.1:3306:3306"
2021-12-29 08:57:06 +00:00
2021-08-29 02:19:49 +00:00
ytdl:
image: bennythink/ytdlbot
env_file:
- env/ytdl.env
restart: always
depends_on:
- socat
2021-12-29 08:57:06 +00:00
- redis
2021-12-29 15:17:47 +00:00
volumes:
2021-12-30 05:04:50 +00:00
- ./data/instagram.com_cookies.txt:/ytdlbot/ytdlbot/instagram.com_cookies.txt
2021-12-29 15:17:47 +00:00
- ./data/vnstat/:/var/lib/vnstat/
2022-01-01 14:06:49 +00:00
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" ]
volumes:
- ./data/instagram.com_cookies.txt:/ytdlbot/ytdlbot/instagram.com_cookies.txt
ports:
- "5555:5555"