proxy crashes before client is started
Closed this issue · 0 comments
yowkah commented
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
- clone the repo
- run
docker-compose up -d
- when finished, check process status with
docker-compose ps
it should mention that the proxy service exited with status 1 or 2 - run
docker-compose logs proxy
it should mention an unresolved host for "client" in it's configuration