build
docker-compose build
up
docker-compose up
ex) login to server2
docker exec -it $(docker ps -q -f name=server2) sh
ex) show members of server1 cluster
docker exec -it $(docker ps -q -f name=server1) consul members
ex) add server3 to server1 cluster
docker exec -it $(docker ps -q -f name=server3) consul join c3d_server1.docker
ex) exec command via server2
docker exec -it $(docker ps -q -f name=server2) consul exec uname -a
ex) scale server3
docker-compose scale server3=4
http://localhost:8500/ui/consul_web_ui/
- Add Consul Web UI
- Add Service