-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Connection timeout with nodejs app occasionally #52
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
Comments
Looks like you're trying to link the |
@RobLoach Sorry could you clarify? Does that not link |
Specify db:
links:
- db |
In the example above it states: server:
links:
- db As far as I can see that is exactly what you say - from one container to another. I think compose might even throw an error if you link a container to itself. |
Oh wow, my eyes fail me.... 👍 . |
Bump... Plz fix guys =p |
Doh, I should have realized earlier that this is just mysql trying to do reverse DNS lookups.... https://serverfault.com/questions/341290/mysql-warning-ip-address-could-not-be-resolved. We just need those lines in the config. |
I am using docker-compose to connect a nodejs app to a mysql database with the following
.yml
file:Often it works, but often I get a timeout and a warning
'2015-03-04 14:40:37 1 [Warning] IP address '172.17.0.15' could not be resolved: Temporary failure in name resolution'
I am not entirely sure if the issue is here, or in the app itself, since if I switch to the postgresql I have no issues as well.Still trying to nail down where exactly the issue arises, this is more to keep track of it in case it is an issue with the image being slow or something.
The text was updated successfully, but these errors were encountered: