Skip to content
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

Postgres services loads before django #4

Open
nickatnight opened this issue Mar 17, 2021 · 2 comments
Open

Postgres services loads before django #4

nickatnight opened this issue Mar 17, 2021 · 2 comments

Comments

@nickatnight
Copy link

When running dc up, the django service will fail to load if postgres service boots first. See image
Screen Shot 2021-03-16 at 8 55 03 PM

@nickatnight
Copy link
Author

Solution:

https://github.com/maxcnunes/waitforit

@robdox
Copy link
Owner

robdox commented Mar 28, 2021

In the docker-entrypoint.sh we wait for 2s to let postgres go up. This has worked for me because i'm working on a fairly powerful system but perhaps the timeout should be extended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants