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

Wait for MySQL to be running #20

Merged
merged 1 commit into from
May 13, 2019
Merged

Wait for MySQL to be running #20

merged 1 commit into from
May 13, 2019

Conversation

joehoyle
Copy link
Member

The mysql container may start, but that doesn't mean mysql is ready to accept connection. Instead use a healthcheck to wait for MySQL to be available before starting the PHP container.

The mysql container may start, but that doesn't mean mysql is ready to accept connection. Instead use a healthcheck to wait for MySQL to be available before starting the PHP container.
@joehoyle joehoyle requested a review from roborourke May 11, 2019 11:45
Copy link
Contributor

@roborourke roborourke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's awesome, didn't know docker had a healthcheck feature!

@roborourke roborourke merged commit bc1b17c into master May 13, 2019
@roborourke roborourke deleted the wait-for-mysql branch May 13, 2019 10:08
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

Successfully merging this pull request may close these issues.

2 participants