2021-08-29 10:19:49 +08:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
socat:
|
2022-02-09 14:37:40 +08:00
|
|
|
image: bennythink/socat
|
2021-08-29 10:19:49 +08:00
|
|
|
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:
|
2022-10-26 20:17:33 +08:00
|
|
|
image: redis:7-alpine
|
2021-08-29 10:19:49 +08:00
|
|
|
restart: always
|
|
|
|
logging:
|
|
|
|
driver: none
|
|
|
|
|
2021-12-29 16:57:06 +08:00
|
|
|
mysql:
|
2022-10-26 20:17:33 +08:00
|
|
|
image: ubuntu/mysql:8.0-22.04_beta
|
2021-12-29 16:57:06 +08:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./db_data:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: 'root'
|
2023-09-10 20:08:11 +08:00
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
2021-12-29 16:57:06 +08:00
|
|
|
logging:
|
|
|
|
driver: none
|
|
|
|
|
2021-08-29 10:19:49 +08:00
|
|
|
ytdl:
|
|
|
|
image: bennythink/ytdlbot
|
|
|
|
env_file:
|
|
|
|
- env/ytdl.env
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- socat
|
2021-12-29 16:57:06 +08:00
|
|
|
- redis
|
2021-12-29 23:17:47 +08:00
|
|
|
volumes:
|
|
|
|
- ./data/vnstat/:/var/lib/vnstat/
|
2023-12-13 01:24:21 +08:00
|
|
|
|
2023-12-21 03:09:34 +08:00
|
|
|
premium:
|
2023-12-13 01:24:21 +08:00
|
|
|
image: bennythink/ytdlbot
|
|
|
|
env_file:
|
|
|
|
- env/ytdl.env
|
|
|
|
restart: always
|
2023-12-21 03:09:34 +08:00
|
|
|
volumes:
|
|
|
|
- ./data/premium.session:/ytdlbot/ytdlbot/premium.session
|
|
|
|
command: [ "/usr/local/bin/python", "/ytdlbot/ytdlbot/premium.py" ]
|