The is an example of connecting docker-gen to a Docker Swarm cluster. Please see this post for more details.
- Place a
docker-genbinary in thedocker-gen/folder. - Copy the SSL certificates for your Docker Swarm master into the
docker-gen/certsfolder. - Update the default site configuration for the nginx reverse proxy (see
docker-gen/sites-enabled/default) - Update the DOCKER_HOST environment variable in
docker-compose.ymlto point to the correct address of the Swarm master.
$ docker-compose up -d