mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
flower data persistence and time zone
This commit is contained in:
parent
21f06ea248
commit
06b173e4a8
@ -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"
|
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user