This commit is contained in:
BennyThink 2021-12-30 13:04:50 +08:00
parent c932525c3a
commit 2630d15535
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481
2 changed files with 10 additions and 9 deletions

3
.gitignore vendored
View File

@ -153,4 +153,5 @@ dmypy.json
/.idea/dataSources/bf75f0a6-c774-4ecf-9448-2086f57b70df/storage_v2/_src_/schema/main.uQUzAA.meta
db_data/*
env/*
.ash_history
.ash_history
ytdlbot/ytdl.session

View File

@ -15,7 +15,7 @@ services:
driver: none
mysql:
image: mysql:5.7
image: mysql/mysql-server:8.0
restart: always
volumes:
- ./db_data:/var/lib/mysql
@ -33,12 +33,12 @@ services:
- socat
- redis
volumes:
- ./data/instagram.com_cookies.txt:/ytdlbot/instagram.com_cookies.txt
- ./data/instagram.com_cookies.txt:/ytdlbot/ytdlbot/instagram.com_cookies.txt
- ./data/vnstat/:/var/lib/vnstat/
# worker:
# image: bennythink/ytdlbot
# env_file:
# - env/ytdl.env
# restart: always
# command: [ "/usr/local/bin/celery" ,"-A","tasks","worker","--loglevel=info","--pool=prefork","--concurrency=200" ]
worker:
image: bennythink/ytdlbot
env_file:
- env/ytdl.env
restart: always
command: [ "python" ,"tasks.py" ]