From 90c4d6e1c03aea55663ecd7c7d64b0fe08708b8b Mon Sep 17 00:00:00 2001 From: BennyThink Date: Thu, 30 Dec 2021 15:50:16 +0800 Subject: [PATCH] add flower, use mysql5.7 --- .gitignore | 3 ++- docker-compose.yml | 2 +- flower.yml | 13 +++++++++++++ requirements.txt | 1 + 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 flower.yml diff --git a/.gitignore b/.gitignore index bebfdba..ca82b57 100644 --- a/.gitignore +++ b/.gitignore @@ -154,4 +154,5 @@ dmypy.json db_data/* env/* .ash_history -ytdlbot/ytdl.session \ No newline at end of file +ytdlbot/ytdl.session +data/* \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 9f8ae1c..0c6465f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/flower.yml b/flower.yml new file mode 100644 index 0000000..070ae15 --- /dev/null +++ b/flower.yml @@ -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" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index bc6d28e..83f7976 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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