This is my
version: '3.3' services: nginx: image: nginx:latest environment: VIRTUAL_HOST: example.com ports: - 30001:80 networks: - default logging: driver: json-file networks: default: driver: overlay
docker-compose.ymlas it gets set up after I load in my stuff. It basically adds the default network in there for me
ports, and run the
defaultnetwork which is already in overlay mode.
ports: - 80:80
80:80, it becomes available to the entire world and docker swarm, instead of just in this network that I was expecting to be routing to
docker-compose.ymlfrom anywhere with a web app; you may assume a
port 80is bound somewhere. However, if there's already another stack that uses it, this won't work. This seems weird to me, as I understand that you'd have to route to that specific virtual network in your swarm (hence; the reverse proxy). But I wasn't expecting it to be swarm wide when you expose a port.
test2_default(being appA and appB)
port 80assignment in there.
port 80:80, but have it randomize instead so your proxy can take