-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
66 lines (65 loc) · 2.4 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '2'
services:
etcd1:
image: quay.io/coreos/etcd:v3.2.5
restart: always
ports:
- 23791:2379
- 23801:2380
volumes:
- ./certs/:/srv/
- /srv/docker/etcd:/etcd-data
environment:
ETCD_NAME: node1
ETCD_DATA_DIR: /etcd-data/etcd1.etcd
ETCDCTL_API: 3
ETCD_DEBUG: 1
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd1:2380
ETCD_INITIAL_CLUSTER: node3=http://etcd3:2380,node1=http://etcd1:2380,node2=http://etcd2:2380
ETCD_INITIAL_CLUSTER_STATE: new
ETCD_INITIAL_CLUSTER_TOKEN: etcd-ftw
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_ADVERTISE_CLIENT_URLS: http://etcd1:2379
etcd2:
image: quay.io/coreos/etcd:v3.2.5
restart: always
ports:
- 23792:2379
- 23802:2380
volumes:
- ./certs/:/srv/
- /srv/docker/etcd:/etcd-data
environment:
ETCD_NAME: node2
ETCD_DATA_DIR: /etcd-data/etcd2.etcd
ETCDCTL_API: 3
ETCD_DEBUG: 1
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd2:2380
ETCD_INITIAL_CLUSTER: node3=http://etcd3:2380,node1=http://etcd1:2380,node2=http://etcd2:2380
ETCD_INITIAL_CLUSTER_STATE: new
ETCD_INITIAL_CLUSTER_TOKEN: etcd-ftw
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_ADVERTISE_CLIENT_URLS: http://etcd2:2379
etcd3:
image: quay.io/coreos/etcd:v3.2.5
restart: always
ports:
- 23793:2379
- 23803:2380
volumes:
- ./certs/:/srv/
- /srv/docker/etcd:/etcd-data
environment:
ETCD_NAME: node3
ETCD_DATA_DIR: /etcd-data/etcd3.etcd
ETCDCTL_API: 3
ETCD_DEBUG: 1
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://etcd3:2380
ETCD_INITIAL_CLUSTER: node3=http://etcd3:2380,node1=http://etcd1:2380,node2=http://etcd2:2380
ETCD_INITIAL_CLUSTER_STATE: new
ETCD_INITIAL_CLUSTER_TOKEN: etcd-ftw
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_ADVERTISE_CLIENT_URLS: http://etcd3:2379