Answer the question
In order to leave comments, you need to log in
How to start nginx when there is no docker swarm service?
There is a docker swarm orchestrator and nginx inside for proxying requests.
upstream site {
server site:3000;
}
Answer the question
In order to leave comments, you need to log in
It looks like the only option is not to specify upstreams, but to declare them in the location directive along with the resolver.
https://ilhicas.com/2018/04/14/Nginx-Upstream-Unav...
location / {
resolver 8.8.8.8 valid=10s;
set $upstreamName nameofhost:8443;
proxy_pass http://$upstreamName;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question