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

Startup blocking behavior in docker compose #26

Open
tleyden opened this issue Sep 30, 2016 · 1 comment
Open

Startup blocking behavior in docker compose #26

tleyden opened this issue Sep 30, 2016 · 1 comment

Comments

@tleyden
Copy link

tleyden commented Sep 30, 2016

I have a docker compose file that starts rabbitmq (currently using tutum image, need to switch to this one), but the dependent services are trying to connect before rabbitmq is listening on the port:

tleyden/open-ocr#74 (comment)

How can I block until rabbitmq is listening for connections? Will switching to the official rabbitmq image help?

@assignonward
Copy link

I've had my apps wait for active connection and when one isn't present after 5 seconds, close the attempted connection and retry. It's neither elegant, nor 100% reliable, but it does seem to work most of the time. Maybe this answer will serve as a bump for someone with a better solution to share? TIA.

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