yowkah/taggest

proxy crashes before client is started

Closed this issue · 0 comments

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

  1. clone the repo
  2. run docker-compose up -d
  3. when finished, check process status with docker-compose ps it should mention that the proxy service exited with status 1 or 2
  4. run docker-compose logs proxy it should mention an unresolved host for "client" in it's configuration