Skip to content

Commit

Permalink
Fix worker command in production
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack authored Jul 21, 2024
1 parent 97f7313 commit 4401189
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions compose/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4401189

Please sign in to comment.