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