-
Notifications
You must be signed in to change notification settings - Fork 175
/
docker-compose.yaml
97 lines (97 loc) · 4.1 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
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
version: '3'
services:
backend1:
image: sensu/sensu:latest
command: sensu-backend start --etcd-listen-client-urls http://0.0.0.0:2379 --etcd-name backend1 --etcd-advertise-client-urls http://backend1:2379 --etcd-initial-cluster backend1=http://backend1:2380,backend2=http://backend2:2380,backend3=http://backend3:2380 --etcd-initial-cluster-state new --etcd-initial-advertise-peer-urls http://backend1:2380 --state-dir /var/lib/sensu/sensu-backend/etcd1 --etcd-listen-peer-urls http://0.0.0.0:2380 --log-level debug --debug
hostname: backend1
restart: always
ports:
- "2379:2379"
- "2380:2380"
- "8080:8080"
- "8081:8081"
- "6060:6060"
- "3000:3000"
backend2:
image: sensu/sensu:latest
command: sensu-backend start --etcd-listen-client-urls http://0.0.0.0:2379 --etcd-name backend2 --etcd-advertise-client-urls http://backend2:2379 --etcd-initial-cluster backend1=http://backend1:2380,backend2=http://backend2:2380,backend3=http://backend3:2380 --etcd-initial-cluster-state new --etcd-initial-advertise-peer-urls http://backend2:2380 --state-dir /var/lib/sensu/sensu-backend/etcd2 --etcd-listen-peer-urls http://0.0.0.0:2380 --log-level debug
hostname: backend2
restart: always
ports:
- "12379:2379"
- "12380:2380"
- "18080:8080"
- "18081:8081"
backend3:
image: sensu/sensu:latest
command: sensu-backend start --etcd-listen-client-urls http://0.0.0.0:2379 --etcd-name backend3 --etcd-advertise-client-urls http://backend3:2379 --etcd-initial-cluster backend1=http://backend1:2380,backend2=http://backend2:2380,backend3=http://backend3:2380 --etcd-initial-cluster-state new --etcd-initial-advertise-peer-urls http://backend3:2380 --state-dir /var/lib/sensu/sensu-backend/etcd3 --etcd-listen-peer-urls http://0.0.0.0:2380 --log-level debug
hostname: backend3
restart: always
ports:
- "22379:2379"
- "22380:2380"
- "28080:8080"
- "28081:8081"
agent1:
image: sensu/sensu:latest
command: sensu-agent start --backend-url ws://backend1:8081 --subscriptions switches --log-level warn --keepalive-interval 5 --keepalive-timeout 10
hostname: agent1
restart: always
depends_on:
- backend1
- backend2
- backend3
agent2:
image: sensu/sensu:latest
command: sensu-agent start --backend-url ws://backend2:8081 --subscriptions switches --log-level warn --keepalive-interval 5 --keepalive-timeout 10
hostname: agent2
restart: always
depends_on:
- backend1
- backend2
- backend3
agent3:
image: sensu/sensu:latest
command: sensu-agent start --backend-url ws://backend3:8081 --subscriptions rbac,roundrobin --log-level warn --namespace devops --keepalive-interval 5 --keepalive-timeout 10
hostname: agent3
restart: always
depends_on:
- backend1
- backend2
- backend3
agent4:
image: sensu/sensu:latest
command: sensu-agent start --backend-url ws://backend2:8081 --subscriptions schedules,rbac,roundrobin,proxy --log-level warn --keepalive-interval 5 --keepalive-timeout 10
hostname: agent4
restart: always
depends_on:
- backend1
- backend2
- backend3
agent5:
image: sensu/sensu:latest
command: sensu-agent start --backend-url ws://backend2:8081 --subscriptions schedules,rbac,roundrobin,proxy --log-level warn --keepalive-interval 5 --keepalive-timeout 10
hostname: agent5
restart: always
depends_on:
- backend1
- backend2
- backend3
agent6:
image: sensu/sensu:latest
command: sensu-agent start --backend-url ws://backend2:8081 --subscriptions schedules,rbac,roundrobin,proxy --log-level warn --keepalive-interval 5 --keepalive-timeout 10
hostname: agent6
restart: always
depends_on:
- backend1
- backend2
- backend3
agent7:
image: sensu/sensu:latest
command: sensu-agent start --backend-url ws://backend2:8081 --subscriptions schedules,rbac,roundrobin,proxy --log-level warn --keepalive-interval 5 --keepalive-timeout 10
hostname: agent7
restart: always
depends_on:
- backend1
- backend2
- backend3