add flower, use mysql5.7

This commit is contained in:
BennyThink 2021-12-30 15:50:16 +08:00
parent e7f99e5601
commit 90c4d6e1c0
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481
4 changed files with 17 additions and 2 deletions

3
.gitignore vendored
View File

@ -154,4 +154,5 @@ dmypy.json
db_data/*
env/*
.ash_history
ytdlbot/ytdl.session
ytdlbot/ytdl.session
data/*

View File

@ -17,7 +17,7 @@ services:
- "192.168.6.1:6379:6379"
mysql:
image: mysql/mysql-server:8.0
image: mysql:5.7
restart: always
volumes:
- ./db_data:/var/lib/mysql

13
flower.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3.1'
services:
flower:
image: bennythink/ytdlbot
env_file:
- env/ytdl.env
restart: always
command: [ "/usr/local/bin/celery" ,"-A","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"

View File

@ -7,6 +7,7 @@ beautifultable==1.0.1
ffmpeg-python==0.2.0
PyMySQL==1.0.2
celery==5.2.2
flower
supervisor
tgbot-ping