fix(api): use exec format in docker-compose
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2331>
This commit is contained in:
parent
a0cda2a56c
commit
b10b0b608a
|
@ -32,7 +32,12 @@ services:
|
||||||
# of CPUs. You can adjust this, by explicitly setting the --concurrency
|
# of CPUs. You can adjust this, by explicitly setting the --concurrency
|
||||||
# flag:
|
# flag:
|
||||||
# celery -A funkwhale_api.taskapp worker -l INFO --concurrency=4
|
# celery -A funkwhale_api.taskapp worker -l INFO --concurrency=4
|
||||||
command: celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY-0}
|
command:
|
||||||
|
- celery
|
||||||
|
- --app=funkwhale_api.taskapp
|
||||||
|
- worker
|
||||||
|
- --loglevel=INFO
|
||||||
|
- --concurrency=${CELERYD_CONCURRENCY-0}
|
||||||
environment:
|
environment:
|
||||||
- C_FORCE_ROOT=true
|
- C_FORCE_ROOT=true
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -42,11 +47,15 @@ services:
|
||||||
celerybeat:
|
celerybeat:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
|
||||||
|
command:
|
||||||
|
- celery
|
||||||
|
- --app=funkwhale_api.taskapp
|
||||||
|
- beat
|
||||||
|
- --loglevel=INFO
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
env_file: .env
|
env_file: .env
|
||||||
command: celery -A funkwhale_api.taskapp beat --pidfile= -l INFO
|
|
||||||
|
|
||||||
api:
|
api:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Reference in New Issue