Skip to content

Docker compose file and other resources for running Consul as a service in Docker

Notifications You must be signed in to change notification settings

mobiker/thechane-consul

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

consul as a Docker Service

This docker compose file shows how to run Consul as a service in the >= 1.13 versions of Docker. It assumes you have >= 5 nodes in with the consul label assined and at least 1 with the temp label assigned.

  1. Create a swarm of 5 nodes

  2. Add temp label to one of the node

docker node update --label-add access=temp node-1
  1. Add consul label to other nodes
docker node update --label-add access=consul node-2
docker node update --label-add access=consul node-3
docker node update --label-add access=consul node-4
docker node update --label-add access=consul node-5
  1. Deploy the stack
docker stack deploy test -c docker-compose.yml

About

Docker compose file and other resources for running Consul as a service in Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published