github.com/mailgun/holster/v4@v4.20.0/docker-compose.yaml (about) 1 version: "3" 2 services: 3 etcd: 4 image: quay.io/coreos/etcd:v3.2 5 command: > 6 /usr/local/bin/etcd 7 -name etcd0 8 -advertise-client-urls http://localhost:2379 9 -listen-client-urls http://0.0.0.0:22379 10 -initial-advertise-peer-urls http://0.0.0.0:2381 11 -listen-peer-urls http://0.0.0.0:2381 12 -initial-cluster-token etcd-cluster-1 13 -initial-cluster etcd0=http://0.0.0.0:2381 14 -initial-cluster-state new 15 -enable-v2=false 16 platform: linux/amd64 17 ports: 18 - 22379:22379 19 20 consul-agent: 21 image: hashicorp/consul:latest 22 command: "agent -retry-join consul-server-bootstrap -client 0.0.0.0" 23 volumes: 24 - ${PWD}/consul/config:/consul/config 25 26 consul-server-bootstrap: 27 image: hashicorp/consul:latest 28 ports: 29 - "8400:8400" 30 - "8500:8500" 31 - "8501:8501" 32 - "8600:8600" 33 - "8600:8600/udp" 34 command: "agent -server -bootstrap-expect 1 -ui -client 0.0.0.0" 35 volumes: 36 - ${PWD}/consul/config:/consul/config