I am running docker swarm with a current setup
swarm.abc.com (lets say 192.168.1.1) - master node1.abc.com - child node2.abc.com - child
I have a container running in the swarm running on port 888. If I connect to the 192.168.1.1:888 - I can access it - which is good.
I also have nginx on swarm.abc.com. in nginx config I have
server {
listen 80;
server_name my.domain.com;
location / {
proxy_pass http://localhost:888; #which should redirect me to 192.168.1.1
}
}
However, when I connect to my.domain.com I'm getting connection timeout. Any help?
Cheers