-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use docker-compose configuration version 3 to fix hello-world #23
base: master
Are you sure you want to change the base?
Conversation
On MacOsX, El-Capitan, the instructions on autopilotpattern/hello-world resulted in a page that displayed the following 404 Not Found nginx/1.10.1 404 Not Found nginx/1.10.1 Solution: Change the docker-compose.yml to version 3 of the file format. With this change, the output is Hello World which is the expected output. Why does this work?: This explanation is based on empirical evidence rather than any deep knowledge of the inner workings of docker-compose. version "3" of the docker-compose configuration seems to handle networks differently. As a consequence this seems to fix the dns issue.
@satvidh I can't replicate what you're seeing. Can you give me the results of
|
I can replicate @satvidh's symptoms, with some interesting twists:
In summary:
|
I just took a peek at the nginx error log and config file. The error log seems to suggest that the requests for the backend apps are being handled as requests for static content:
...which makes sense, given that the config file is missing the conditional stanzas found in the template:
|
The plot thickens: I tried running the preStart hook for nginx and got a timeout:
...but when I tried using
I then tried resolving
...and noticed that the IP address that This project currently uses |
On a boot2docker instance through docker-machine from Docker Toolbox, the instructions on autopilotpattern/hello-world resulted in a page that displayed the following
404 Not Found
nginx/1.10.1
404 Not Found
nginx/1.10.1
Solution:
Change the docker-compose.yml to version 3 of the file format.
With this change, the output is
Hello World
which is the expected output.
Why does this work?:
This explanation is based on empirical evidence rather than any deep knowledge of the inner workings of docker-compose.
version "3" of the docker-compose configuration seems to handle networks differently. As a consequence this seems to fix the dns issue.