From f1dbcde4c468b1bc4df0762c24d9b09e5c728670 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Thu, 13 Jan 2022 20:59:54 -0800 Subject: [PATCH] docker-compose: fix celery In celery 5, the --workdir argument must come before the 'worker' subcommand. Without this, celery cannot load the layerindex module and this causes the celery container to continually restart. Signed-off-by: Tim Orling --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3e16e95..2dfff41 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -80,7 +80,7 @@ services: #- "EMAIL_USE_TLS=" #- "DEBUG=1" restart: unless-stopped - command: /usr/local/bin/celery -A layerindex.tasks worker --loglevel=info --workdir=/opt/layerindex + command: /usr/local/bin/celery --workdir=/opt/layerindex --app layerindex.tasks worker --loglevel=INFO #layerscertbot: # image: certbot/certbot # volumes: