Closed yowkah closed 4 years ago
When the nginx server is starting in Docker, the client is not ready yet. Which means the DNS entry for client is not yet made available by Docker.
Nginx will attempt to resolve this host when starting, finding it fails to resolve the host, the process exits with status 2.
We need to alter the docker-compose.yaml to make docker wait with starting the proxy service untill the client is ready.
docker-compose up -d
docker-compose ps
docker-compose logs proxy
When the nginx server is starting in Docker, the client is not ready yet. Which means the DNS entry for client is not yet made available by Docker.
Nginx will attempt to resolve this host when starting, finding it fails to resolve the host, the process exits with status 2.
We need to alter the docker-compose.yaml to make docker wait with starting the proxy service untill the client is ready.
reproduction
docker-compose up -d
docker-compose ps
it should mention that the proxy service exited with status 1 or 2docker-compose logs proxy
it should mention an unresolved host for "client" in it's configuration