diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index b852debc..9fd28e11 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -34,7 +34,7 @@ services: - ${REMOTE_DEBUGGING_PORT:-5678}:5678 command: > bash -c " - wait-for-it -s postgres.local:5432 -t 60 && + wait-for-it -s postgres.local:5432 -t ${WAIT_POSTGRES_TIMEOUT:-180} && ./manage.py migrate && ./manage.py create_superuser && ./manage.py create_example_users && @@ -53,7 +53,7 @@ services: image: adit_dev-default_worker:latest command: > bash -c " - wait-for-it -s postgres.local:5432 -t 60 && + wait-for-it -s postgres.local:5432 -t ${WAIT_POSTGRES_TIMEOUT:-180} && ./manage.py bg_worker -l debug -q default --autoreload " @@ -62,7 +62,7 @@ services: image: adit_dev-dicom_worker:latest command: > bash -c " - wait-for-it -s postgres.local:5432 -t 60 && + wait-for-it -s postgres.local:5432 -t ${WAIT_POSTGRES_TIMEOUT:-180} && ./manage.py bg_worker -l debug -q dicom --autoreload " diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 0c89945d..3120d3af 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -26,7 +26,7 @@ services: hostname: init.local command: > bash -c " - wait-for-it -s postgres.local:5432 -t 60 && + wait-for-it -s postgres.local:5432 -t ${WAIT_POSTGRES_TIMEOUT:-180} && ./manage.py migrate && ./manage.py collectstatic --no-input && ./manage.py create_superuser && @@ -61,7 +61,7 @@ services: <<: *default-app command: > bash -c " - wait-for-it -s postgres.local:5432 -t 60 && + wait-for-it -s postgres.local:5432 -t ${WAIT_POSTGRES_TIMEOUT:-180} && ./manage.py bg_worker -q default " deploy: @@ -71,7 +71,7 @@ services: <<: *default-app command: > bash -c " - wait-for-it -s postgres.local:5432 -t 60 && + wait-for-it -s postgres.local:5432 -t ${WAIT_POSTGRES_TIMEOUT:-180} && ./manage.py bg_worker -q dicom " deploy: