flower data persistence and time zone

This commit is contained in:
BennyThink 2022-01-02 17:59:22 +08:00
parent 21f06ea248
commit 06b173e4a8
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481
3 changed files with 7 additions and 6 deletions

View File

@ -45,8 +45,11 @@ services:
env_file:
- env/ytdl.env
restart: on-failure
command: [ "/usr/local/bin/celery" ,"-A","flower_tasks","flower" ,"--basic_auth=benny:123456","--address=0.0.0.0" ]
command: ["/usr/local/bin/celery",
"-A", "flower_tasks", "flower",
"--basic_auth=benny:123456",
"--address=0.0.0.0", "--persistent"]
volumes:
- ./data/instagram.com_cookies.txt:/ytdlbot/ytdlbot/instagram.com_cookies.txt
- ./data/flower:/ytdlbot/ytdlbot/flower
ports:
- "5555:5555"

View File

@ -8,8 +8,7 @@ ffmpeg-python==0.2.0
PyMySQL==1.0.2
celery==5.2.2
filetype==1.0.9
flower
flower==1.0.0
supervisor
tgbot-ping

View File

@ -11,5 +11,4 @@ from celery import Celery
from config import BROKER
app = Celery('tasks', broker=BROKER)
app = Celery('tasks', broker=BROKER, timezone="Asia/Shanghai")