File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,20 @@ services:
35
35
healthcheck :
36
36
test : (wget --server-response --spider --quiet http://context/user-context.jsonld 2>&1 | awk 'NR==1{print $$2}'| grep -q -e "200") || exit 1
37
37
38
+ redis-sensors :
39
+ labels :
40
+ org.fiware : ' tutorial'
41
+ image : redis:8.2.0-alpine
42
+ container_name : redis
43
+ hostname : redis-for-sensors
44
+ ports :
45
+ - " 6378:6379"
46
+ volumes :
47
+ - redis-data:/data
48
+ healthcheck :
49
+ test : ["CMD", "redis-cli","ping"]
50
+ interval : 10s
51
+
38
52
# Databases
39
53
mongo-db :
40
54
labels :
@@ -119,6 +133,8 @@ services:
119
133
image : quay.io/fiware/tutorials.iot-devices
120
134
hostname : iot-sensors
121
135
container_name : fiware-iot-devices
136
+ depends_on :
137
+ - redis-sensors
122
138
networks :
123
139
- default
124
140
expose :
@@ -133,7 +149,8 @@ services:
133
149
- IOTA_HTTP_PORT=${IOTA_SOUTH_PORT}
134
150
- PIG_COUNT=${PIG_COUNT}
135
151
- COW_COUNT=${COW_COUNT}
136
-
152
+ - REDIS_HOST=redis-for-sensors
153
+
137
154
# Tutorial acts as a Farm Management Information System
138
155
tutorial :
139
156
labels :
@@ -245,6 +262,7 @@ volumes:
245
262
grafana : ~
246
263
mongo-db : ~
247
264
mongo-config : ~
265
+ redis-data : ~
248
266
data-models :
249
267
driver : local
250
268
driver_opts :
You can’t perform that action at this time.
0 commit comments