-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
125 lines (119 loc) · 2.77 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3'
services:
iot:
image: marcelodock/akkawsnarm32v7
ports:
- "2540:2540"
environment:
CLUSTER_IP: iot
CLUSTER_PORT: 2540
SEED1_IP: iot
SEED1_PORT: 2540
MASTER_SYSTEM_NAME: MasterSystem
MASTER_IP: master
MASTER_PORT: 2550
MQTT_IP: mqttbroker
MQTT_PORT: 1883
CASSANDRA_SEED: cass
# SEED2_TCP_ADDR: seed2
ROLE: iot
networks:
- akka-wsn
deploy:
replicas: 1
placement:
constraints: [node.role == worker]
command: gradle run --args="iot 5"
worker1:
image: akkawsn
ports:
- "2560:2560" # Akka port
- "8558:8558" # Http Management port
environment:
CLUSTER_IP: worker1
CLUSTER_PORT: 2560
SEED1_IP: worker1
SEED1_PORT: 2560
MASTER_SYSTEM_NAME: MasterSystem
MASTER_IP: master
MASTER_PORT: 2550
# SEED2_TCP_ADDR: seed2
CASSANDRA_SEED: cass
ROLE: worker
networks:
- akka-wsn
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
restart_policy:
condition: any
delay: 10s
command: gradle run --args="worker"
mqttbroker:
image: arm32v6/eclipse-mosquitto
# image: eclipse-mosquitto
ports:
- "1883:1883" # Listen port
- "9001:9001" # Websocket port
deploy:
replicas: 1
placement:
constraints: [node.role == worker]
networks:
- akka-wsn
cass:
image: cassandra
# volumes:
# - /home/spectre/cassFolder
environment:
CASSANDRA_CLUSTER_NAME: CassandraCluster
# CASSANDRA_LISTEN_ADDRESS: cass
# CASSANDRA_BROADCAST_ADDRESS: cass
# CASSANDRA_RPC_ADDRESS: cass
# CASSANDRA_SEEDS: cass
# CASSANDRA_ENDPOINT_SNITCH: GossipingPropertyFileSnitch
# CLUSTER_IP: cass
# CLUSTER_PORT: 2560
# SEED1_TCP_ADDR: seed1
# SEED2_TCP_ADDR: seed2
# ROLE: backend
networks:
- akka-wsn
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
restart_policy:
condition: any
delay: 10s
master:
image: marcelodock/akkawsn
ports:
- "2550:2550"
environment:
CLUSTER_IP: master
CLUSTER_PORT: 2550
SEED1_IP: master
SEED1_PORT: 2550
MASTER_SYSTEM_NAME: MasterSystem
CASSANDRA_SEED: cass
# SEED2_TCP_ADDR: seed2
ROLE: master
networks:
- akka-wsn
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
restart_policy:
condition: any
delay: 20s
update_config:
parallelism: 1
delay: 10s
command: gradle run --args="master"
networks:
akka-wsn:
#volumes:
# data: