-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yml
56 lines (49 loc) · 1.2 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.7'
services:
consul-server1:
image: consul:1.9.3
container_name: consul-server1
restart: always
volumes:
- ./server1.json:/consul/config/server1.json:ro
- ./certs/:/consul/config/certs/:ro
networks:
- consul
ports:
- "8500:8500"
- "8600:8600/tcp"
- "8600:8600/udp"
command: "agent -bootstrap-expect=3"
consul-server2:
image: consul:1.9.3
container_name: consul-server2
restart: always
volumes:
- ./server2.json:/consul/config/server2.json:ro
- ./certs/:/consul/config/certs/:ro
networks:
- consul
command: "agent -bootstrap-expect=3"
consul-server3:
image: consul:1.9.3
container_name: consul-server3
restart: always
volumes:
- ./server3.json:/consul/config/server3.json:ro
- ./certs/:/consul/config/certs/:ro
networks:
- consul
command: "agent -bootstrap-expect=3"
consul-client:
image: consul:latest
container_name: consul-client
restart: always
volumes:
- ./client.json:/consul/config/client.json:ro
- ./certs/:/consul/config/certs/:ro
networks:
- consul
command: "agent"
networks:
consul:
driver: bridge