Use docker-compose configuration version 3 to fix hello-world#23
Use docker-compose configuration version 3 to fix hello-world#23createdbysk wants to merge 1 commit intoautopilotpattern:masterfrom
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.