-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 1 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
version: '2'
services:
node-1:
image: shcoder/alpine-consul
hostname: node-1
ports:
- 8500:8500
environment:
- CONSUL_NODE_NAME=node-1
- CONSUL_BOOTSTRAP_EXPECT=3
- CONSUL_SERVER=true
- CONSUL_CLUSTER_IPS=node-2,node-3
- CONSUL_ENCRYPT=q7Gsg6LSdrtWFvBpw7vmdA==
node-2:
image: shcoder/alpine-consul
hostname: node-2
environment:
- CONSUL_NODE_NAME=node-2
- CONSUL_BOOTSTRAP_EXPECT=3
- CONSUL_SERVER=true
- CONSUL_CLUSTER_IPS=node-1,node-3
- CONSUL_ENCRYPT=q7Gsg6LSdrtWFvBpw7vmdA==
node-3:
image: shcoder/alpine-consul
hostname: node-3
environment:
- CONSUL_NODE_NAME=node-3
- CONSUL_BOOTSTRAP_EXPECT=3
- CONSUL_SERVER=true
- CONSUL_CLUSTER_IPS=node-1,node-2
- CONSUL_ENCRYPT=q7Gsg6LSdrtWFvBpw7vmdA==
client:
image: shcoder/alpine-consul
environment:
- CONSUL_NODE_NAME=client
- CONSUL_CLUSTER_IPS=node-1,node-2,node-3
- CONSUL_ENCRYPT=q7Gsg6LSdrtWFvBpw7vmdA==