fix celery beat
This commit is contained in:
parent
b89122edb5
commit
d2bb9094f0
|
@ -53,10 +53,20 @@ services:
|
||||||
- FLASK_APP=forget.py
|
- FLASK_APP=forget.py
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.py:/usr/src/app/config.py
|
- ./config.py:/usr/src/app/config.py
|
||||||
|
- ./celery/log:/var/log/celery
|
||||||
|
- ./celery/run:/var/run/celery
|
||||||
depends_on:
|
depends_on:
|
||||||
- forget-redis
|
- forget-redis
|
||||||
- forget-db
|
- forget-db
|
||||||
entrypoint: ["celery", "--app=tasks", "beat"]
|
command: bash -c "
|
||||||
|
mkdir -p /var/run/celery /var/log/celery &&
|
||||||
|
chown -R nobody:nogroup /var/run/celery /var/log/celery &&
|
||||||
|
exec celery --app=tasks beat
|
||||||
|
--loglevel=INFO --logfile=/var/log/celery/beat.log
|
||||||
|
--pidfile="/var/run/celery/beat.pid"
|
||||||
|
--schedule=/var/run/celery/schedule
|
||||||
|
--uid=nobody --gid=nogroup
|
||||||
|
"
|
||||||
|
|
||||||
forget-redis:
|
forget-redis:
|
||||||
container_name: forget-redis
|
container_name: forget-redis
|
||||||
|
|
Loading…
Reference in New Issue