Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 537 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 537 Bytes

consul

H/A Consul Cluster on Docker Swarm

Commands

wget https://raw.githubusercontent.com/olgac/consul/master/docker-compose.yml
docker network create --driver=overlay --attachable prod

docker node update --label-add consul=true node-1
docker stack deploy -c docker-compose.yml consul
sleep 30
docker node update --label-add consul=true node-2
docker node update --label-add consul=true node-3

#docker run -d -p 9000:9000 --name portainer -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer