forked from op5/monitor-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (108 loc) · 3.35 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.3'
services:
monitor-master-1:
ports:
- '443:443'
- '2222:2222'
- 15551
environment:
- SELF_HOSTNAME=master-op5-1.op5.local
container_name: master-op5-1.op5.local
image: 'monitor-docker:latest'
monitor-master-2:
ports:
- 443
- 2222
- 15551
environment:
- SELF_HOSTNAME=master-op5-2.op5.local
- IS_PEER=YES
- PEER_HOSTNAMES=master-op5-1.op5.local
container_name: master-op5-2.op5.local
depends_on:
- monitor-master-1
image: 'monitor-docker:latest'
monitor-master-3:
ports:
- 443
- 2222
- 15551
environment:
- SELF_HOSTNAME=master-op5-3.op5.local
- IS_PEER=YES
- 'PEER_HOSTNAMES=master-op5-1.op5.local,master-op5-2.op5.local'
container_name: master-op5-3.op5.local
depends_on:
- monitor-master-1
- monitor-master-2
image: 'monitor-docker:latest'
monitor-poller-1:
ports:
- 443
- 2222
- 15551
environment:
- SELF_HOSTNAME=poller-op5-1.op5.local
- IS_POLLER=YES
- HOSTGROUPS=pollergroup1
- 'MASTER_ADDRESSES=master-op5-1.op5.local,master-op5-2.op5.local,master-op5-3.op5.local'
container_name: poller-op5-1.op5.local
depends_on:
- monitor-master-1
- monitor-master-2
- monitor-master-3
image: 'monitor-docker:latest'
monitor-poller-2:
ports:
- 443
- 2222
- 15551
environment:
- SELF_HOSTNAME=poller-op5-2.op5.local
- IS_POLLER=YES
- HOSTGROUPS=pollergroup1
- PEER_HOSTNAMES=poller-op5-1.op5.local
- 'MASTER_ADDRESSES=master-op5-1.op5.local,master-op5-2.op5.local,master-op5-3.op5.local'
container_name: poller-op5-2.op5.local
depends_on:
- monitor-master-1
- monitor-master-2
- monitor-master-3
- monitor-poller-1
image: 'monitor-docker:latest'
monitor-poller-3:
ports:
- 443
- 2222
- 15551
environment:
- SELF_HOSTNAME=poller-op5-3.op5.local
- IS_POLLER=YES
- HOSTGROUPS=pollergroup2
- 'MASTER_ADDRESSES=master-op5-1.op5.local,master-op5-2.op5.local,master-op5-3.op5.local'
container_name: poller-op5-3.op5.local
depends_on:
- monitor-master-1
- monitor-master-2
- monitor-master-3
image: 'monitor-docker:latest'
monitor-poller-4:
ports:
- 443
- 2222
- 15551
environment:
- SELF_HOSTNAME=poller-op5-4.op5.local
- IS_POLLER=YES
- HOSTGROUPS=pollergroup2
- PEER_HOSTNAMES=poller-op5-3.op5.local
- 'MASTER_ADDRESSES=master-op5-1.op5.local,master-op5-2.op5.local,master-op5-3.op5.local'
container_name: poller-op5-4.op5.local
depends_on:
- monitor-master-1
- monitor-master-2
- monitor-master-3
- monitor-poller-3
image: 'monitor-docker:latest'
networks:
op5net: