b54c956c5e
Co-authored-by: Julien Salleyron <julien@containo.us>
33 lines
748 B
YAML
33 lines
748 B
YAML
version: '2'
|
|
|
|
services:
|
|
|
|
etcd:
|
|
image: quay.io/coreos/etcd:v3.2.9
|
|
command: /usr/local/bin/etcd --data-dir=/etcd-data --name node1 --initial-advertise-peer-urls http://etcd:2380 --listen-peer-urls http://0.0.0.0:2380 --advertise-client-urls http://etcd:2379,http://etcd:4001 --listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 --initial-cluster node1=http://etcd:2380 --debug
|
|
expose:
|
|
- 2380
|
|
- 2379
|
|
- 4001
|
|
- 7001
|
|
|
|
whoami1:
|
|
image: containous/whoami
|
|
depends_on:
|
|
- etcd
|
|
|
|
whoami2:
|
|
image: containous/whoami
|
|
depends_on:
|
|
- whoami1
|
|
|
|
whoami3:
|
|
image: containous/whoami
|
|
depends_on:
|
|
- whoami2
|
|
|
|
whoami4:
|
|
image: containous/whoami
|
|
depends_on:
|
|
- whoami3
|
|
|