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
Nginx container sometimes errors on load #87
Comments
Do you prefer embedding a copy of |
I am fine including it but I am a bit wary of the behavior of it. I would prefer it not just show a blank page until Webpack builds as I think that's confusing. Can we have Nginx return a 502 error somehow before this? Maybe you have ideas. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has to do with not waiting for frontend and backend containers to be started before the Nginx container loads. Using something like
depends_on
in Docker won't work because the frontend container has technically started even before Webpack is built. Backend can be an issue too but Webpack is the one that takes a significant amount of time in my experience.Example error:
What we need is something like Docker's healthcheck or the wait-for-it script to check that these containers are responding to requests. It would also be good if Nginx can report an error message that makes sense (like that it's starting up) during this time, to avoid confusion.
The text was updated successfully, but these errors were encountered: