-
Notifications
You must be signed in to change notification settings - Fork 83
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
Docker: Wait until ready #48
Comments
Hi there, From compose v3 you can implement a healthcheck.
I dont know which one is port 5080 for you (SMTP/HTTP), but: With this in mind, you can setup a healthcheck one-liner.
https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck |
@Re4zOon thank you for sharing. I agree that this is a valid alternative. |
I am using
fake-smtp-server
with docker-compose for development. I noticed that it takes some time until port 5080 is actually ready to serve connections.What do you think about including
wait-for-it.sh
in the Dockerfile?For a quick howto, see:
https://selahattinunlu.medium.com/how-to-wait-for-a-container-to-be-ready-757bc1a86468
The text was updated successfully, but these errors were encountered: