HI, I’m running a couple of services, redis, flask, etc in a VirtualBox Swarm on Linus Mint. The swarm is running fin and all services are accesible using --container IP at VBox–:port. For example the visualizer is accesible at 192.168.99.103:8080
I require to setup a reverse proxy and for te task I’m using jwilder/nginx-proxy. Unfortunatly I’ve not been able to make it work. I appreciate if someone could have a look at my compose file and point me in the right direction.
version: "3.5"
networks:
default:
name: nginx-network
services:
reverse-nginx:
image: jwilder/nginx-proxy:latest
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
- DEFAULT_HOST=myapp
visualizer:
image: dockersamples/visualizer:latest
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
depends_on:
- reverse-nginx
environment:
- VIRTUAL_HOST=visualizer.myapp
- VIRTUAL_PORT=8080
At “etc/hosts” the VBox IP points to “myapp”.
If a open http: // myapp/ I get
503 Service Temporarily Unavailable
so the DNS is no the problem.
If i try http: // visualizer.myapp i get
This site can’t be reached visualizer.myapp’s server IP address could not be found.
I really appreciate your help. Thanks…