Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
6 contributors

Users who have contributed to this file

@grepory @echlebek @nikkiki @palourde @amdprophet @davent
98 lines (97 sloc) 4.1 KB
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 --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
You can’t perform that action at this time.