-
Notifications
You must be signed in to change notification settings - Fork 7
Make Postgres wait timeout configurable #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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} && | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a potential timeout dependency issue. The |
||
| ./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: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new
WAIT_POSTGRES_TIMEOUTenvironment variable should be added toexample.envwith its default value (180). This ensures the configuration option is discoverable for users and documented in the standard environment template, following the repository's convention for key variables.References