While our support for routing mesh is new with Windows Server version 1709, host mode service publishing has been supported since swarm mode was originally made available on Windows.
--publishflag to the
docker service createoption, as described in Docker's documentation .
web-frontend. If you wanted to publish this service to port 80 of each container and port 8080 of all of your swarm nodes, you'd create the service with a command like this:
C:\> docker service create --name web --replicas 3 --publish 8080:80 web-frontend
webapp, running on a pre-configured swarm cluster along with a
dbbackend service, might look like the app depicted below. As shown, because of routing mesh clients outside of the swarm cluster (in this example, web browsers) are able to access the
webservice via its published port--8080. And in fact, each client can access the web service via its published port on any swarm host ; no matter which host receives an original incoming request, that host will use routing mesh to route the request to a
webcontainer instance that can ultimately service that request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.