Skip to content

Commit 0eb3eac

Browse files
authored
Update docker-compose.yml (#148)
* Update docker-compose.yml In Celery 5.0, -A or --app should come first, as a global option. Running celery worker -A results in the following output: "You are using `-A` as an option of the worker sub-command: celery worker -A celeryapp <...> The support for this usage was removed in Celery 5.0. Instead you should use `-A` as a global option: celery -A celeryapp worker <...>" * Update docker-compose.yml
1 parent 28d7c7f commit 0eb3eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

{{cookiecutter.project_slug}}/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
build:
3131
context: backend
3232
dockerfile: Dockerfile
33-
command: celery worker -A app.tasks --loglevel=DEBUG -Q main-queue -c 1
33+
command: celery --app app.tasks worker --loglevel=DEBUG -Q main-queue -c 1
3434

3535
flower:
3636
image: mher/flower

0 commit comments

Comments
 (0)