From 44011896bd7a24b3a5ad5f6a580682b49eb960d5 Mon Sep 17 00:00:00 2001 From: Kai Schlamp Date: Sun, 21 Jul 2024 15:03:45 +0200 Subject: [PATCH] Fix worker command in production --- compose/docker-compose.prod.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/compose/docker-compose.prod.yml b/compose/docker-compose.prod.yml index 903786e5..78e955b1 100644 --- a/compose/docker-compose.prod.yml +++ b/compose/docker-compose.prod.yml @@ -59,15 +59,19 @@ services: <<: *default-app command: > bash -c " - wait-for-it -s web.local:80 -t 0 && - ./manage.py dicom_worker + wait-for-it -s postgres.local:5432 -t 60 && + ./manage.py worker -q dicom " deploy: <<: *deploy default_worker: <<: *default-app - command: ./manage.py procrastinate worker + command: > + bash -c " + wait-for-it -s postgres.local:5432 -t 60 && + ./manage.py worker -q default + " deploy: <<: *deploy