We'll start by creating a network:
A note to Windows users
You might experience a problem with volumes not being mapped correctly. If you see an Invalid volume specification error, please export the environment variable COMPOSE_CONVERT_WINDOWS_PATHS set to 0:
export COMPOSE_CONVERT_WINDOWS_PATHS=0
Please make sure that the variable is exported before you run docker-compose or docker stack deploy.
You might experience a problem with volumes not being mapped correctly. If you see an Invalid volume specification error, please export the environment variable COMPOSE_CONVERT_WINDOWS_PATHS set to 0:
export COMPOSE_CONVERT_WINDOWS_PATHS=0
Please make sure that the variable is exported before you run docker-compose or docker stack deploy.
eval $(docker-machine env swarm-1)
docker network create --driver overlay proxy
The proxy network will be dedicated to the proxy container and services that will be attached to it.
We'll use docker-compose-stack.yml (https://github.com/vfarcic/docker-flow-proxy/blob/master/docker-compose-stack.yml) from the vfarcic/docker-flow-proxy (https://github.com/vfarcic/docker-flow-proxy) repository to create docker-flow-proxy and docker-flow-swarm-listener...