-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
37 lines (32 loc) · 1014 Bytes
/
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
version: '2'
services:
mosquitto1:
image: rubytwo/mosquitto-ha-broker:0.0.1
hostname: mosquitto1
environment:
MOSQUITTO_BRIDGE_NODES: bridge:1883 hot-standby-bridge:1883
MOSQUITTO_OTHER_BROKERS: mosquitto2,mosquitto3
mosquitto2:
image: rubytwo/mosquitto-ha-broker:0.0.1
hostname: mosquitto2
environment:
MOSQUITTO_BRIDGE_NODES: bridge:1883 hot-standby-bridge:1883
MOSQUITTO_OTHER_BROKERS: mosquitto1,mosquitto3
mosquitto3:
image: rubytwo/mosquitto-ha-broker:0.0.1
hostname: mosquitto3
environment:
MOSQUITTO_BRIDGE_NODES: bridge:1883 hot-standby-bridge:1883
MOSQUITTO_OTHER_BROKERS: mosquitto1,mosquitto2
bridge:
image: rubytwo/mosquitto-alpine:0.0.1
hostname: bridge
hot-standby-bridge:
image: rubytwo/mosquitto-alpine:0.0.1
hostname: hot-standby-bridge
publisher:
image: rubytwo/mqtt-publisher:0.0.1
environment:
BROKER_HOST: mosquitto1
BROKER_PORT: 1883
WAIT_TO_PUBLISH_TIME: 10