-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
42 lines (39 loc) · 1.04 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
version: '3'
services:
consulserver01:
image: consul:1.10
container_name: consulserver01
hostname: consulserver01
command: ['tail', '-f', '/dev/null']
volumes:
- ./servers/server01:/etc/consul.d
ports:
- "8500:8500"
consulserver02:
image: consul:1.10
container_name: consulserver02
hostname: consulserver02
command: ['tail', '-f', '/dev/null']
volumes:
- ./servers/server02:/etc/consul.d
consulserver03:
image: consul:1.10
container_name: consulserver03
hostname: consulserver03
command: ['tail', '-f', '/dev/null']
volumes:
- ./servers/server03:/etc/consul.d
consulclient01:
image: consul:1.10
container_name: consulclient01
hostname: consulclient01
command: ['tail', '-f', '/dev/null']
volumes:
- ./clients/consul01:/etc/consul.d
consulclient02:
image: consul:1.10
container_name: consulclient02
hostname: consulclient02
command: ['tail', '-f', '/dev/null']
volumes:
- ./clients/consul02:/etc/consul.d