V
V
Vasily Shakhunov2019-05-20 14:42:53
Docker
Vasily Shakhunov, 2019-05-20 14:42:53

How to always see a service in docker swarm?

Issue with visibility of docker swarm services when disabling other services.
For example nginx is inside swarm and configured upstream for api

upstream api{
  server api:3000;
}

Further, if the api service falls down, then it automatically falls out of the docker network and nginx stops seeing it.
"failed (113: No route to host) while connecting to upstream"
Even if you return the service, it will not help, only recreate the nginx container.
Is it possible to return a service without restarting nginx?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question