-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (54 loc) · 1.77 KB
/
docker-compose.yml
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
version: '3.9'
services:
node_1:
image: bitnami/etcd
ports:
- 10000:2379
volumes:
- node_1_volume:/etcd_data
environment:
ETCD_NAME: node_1
ETCD_DATA_DIR: node_1
ETCD_ADVERTISE_CLIENT_URLS: http://node_1:2379
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://node_1:2380
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_INITIAL_CLUSTER: node_1=http://node_1:2380,node_2=http://node_2:2380,node_3=http://node_3:2380
ALLOW_NONE_AUTHENTICATION: 'yes'
ETCD_INITIAL_CLUSTER_STATE: new
node_2:
image: bitnami/etcd
ports:
- 10001:2379
volumes:
- node_2_volume:/etcd_data
environment:
ETCD_NAME: node_2
ETCD_DATA_DIR: node_2
ETCD_ADVERTISE_CLIENT_URLS: http://node_2:2379
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://node_2:2380
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_INITIAL_CLUSTER: node_1=http://node_1:2380,node_2=http://node_2:2380,node_3=http://node_3:2380
ALLOW_NONE_AUTHENTICATION: 'yes'
ETCD_INITIAL_CLUSTER_STATE: new
node_3:
image: bitnami/etcd
ports:
- 10002:2379
volumes:
- node_3_volume:/etcd_data
environment:
ETCD_NAME: node_3
ETCD_DATA_DIR: node_3
ETCD_ADVERTISE_CLIENT_URLS: http://node_3:2379
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_INITIAL_ADVERTISE_PEER_URLS: http://node_3:2380
ETCD_LISTEN_PEER_URLS: http://0.0.0.0:2380
ETCD_INITIAL_CLUSTER: node_1=http://node_1:2380,node_2=http://node_2:2380,node_3=http://node_3:2380
ALLOW_NONE_AUTHENTICATION: 'yes'
ETCD_INITIAL_CLUSTER_STATE: new
volumes:
node_1_volume:
node_2_volume:
node_3_volume: