File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,21 @@ services:
3535 healthcheck :
3636 test : (wget --server-response --spider --quiet http://context/user-context.jsonld 2>&1 | awk 'NR==1{print $$2}'| grep -q -e "200") || exit 1
3737
38+ # Cache for Sensor Data Readings
39+ redis-sensors :
40+ labels :
41+ org.fiware : ' tutorial'
42+ image : redis:8.2.0-alpine
43+ container_name : redis
44+ hostname : redis-for-sensors
45+ ports :
46+ - " 6379:6379"
47+ volumes :
48+ - redis-data:/data
49+ healthcheck :
50+ test : ["CMD", "redis-cli","ping"]
51+ interval : 10s
52+
3853 # Databases
3954 mongo-db :
4055 labels :
@@ -88,6 +103,8 @@ services:
88103 image : quay.io/fiware/tutorials.iot-devices
89104 hostname : iot-sensors
90105 container_name : fiware-iot-devices
106+ depends_on :
107+ - redis-sensors
91108 networks :
92109 - default
93110 expose :
@@ -177,6 +194,7 @@ networks:
177194volumes :
178195 mongo-db : ~
179196 mongo-config : ~
197+ redis-data : ~
180198 data-models :
181199 driver : local
182200 driver_opts :
You can’t perform that action at this time.
0 commit comments