@@ -112,40 +112,53 @@ services:
112
112
- TENANT=openiot
113
113
- DEBUG=broker:*
114
114
115
- # Tutorial acts as a series of dummy IoT Sensors over HTTP
115
+ # A series of dummy IoT Sensors over HTTP
116
+ iot-sensors :
117
+ labels :
118
+ org.fiware : ' tutorial'
119
+ image : quay.io/fiware/tutorials.iot-devices
120
+ hostname : iot-sensors
121
+ container_name : fiware-iot-devices
122
+ networks :
123
+ - default
124
+ expose :
125
+ - " ${TUTORIAL_DUMMY_DEVICE_PORT}"
126
+ ports :
127
+ - " ${TUTORIAL_DUMMY_DEVICE_PORT}:${TUTORIAL_DUMMY_DEVICE_PORT}" # localhost:3001
128
+ environment :
129
+ - DEBUG=devices:*
130
+ - WEB_APP_HOST=tutorial
131
+ - WEB_APP_PORT=${TUTORIAL_APP_PORT} # Port used by the content provider proxy and web-app for viewing data
132
+ - IOTA_HTTP_HOST=iot-agent
133
+ - IOTA_HTTP_PORT=${IOTA_SOUTH_PORT}
134
+ - PIG_COUNT=${PIG_COUNT}
135
+ - COW_COUNT=${COW_COUNT}
136
+
137
+ # Tutorial acts as a Farm Management Information System
116
138
tutorial :
117
139
labels :
118
140
org.fiware : ' tutorial'
119
141
image : quay.io/fiware/tutorials.ngsi-ld
120
- hostname : iot-sensors
142
+ hostname : tutorial
121
143
container_name : fiware-tutorial
122
144
depends_on :
123
145
- mongo-db
124
146
networks :
125
- default :
126
- aliases :
127
- - tutorial
128
- - context-provider
147
+ - default
129
148
expose :
130
149
- " ${TUTORIAL_APP_PORT}"
131
- - " ${TUTORIAL_DUMMY_DEVICE_PORT}"
132
150
ports :
133
151
- " ${TUTORIAL_APP_PORT}:${TUTORIAL_APP_PORT}" # localhost:3000
134
- - " ${TUTORIAL_DUMMY_DEVICE_PORT}:${TUTORIAL_DUMMY_DEVICE_PORT}" # localhost:3001
135
152
environment :
136
153
- DEBUG=tutorial:*
137
154
- WEB_APP_PORT=${TUTORIAL_APP_PORT} # Port used by the content provider proxy and web-app for viewing data
138
155
- IOTA_HTTP_HOST=iot-agent
139
156
- IOTA_HTTP_PORT=${IOTA_SOUTH_PORT}
140
- - OPENWEATHERMAP_KEY_ID=<ADD_YOUR_KEY_ID>
141
- - TWITTER_CONSUMER_KEY=<ADD_YOUR_CONSUMER_KEY>
142
- - TWITTER_CONSUMER_SECRET=<ADD_YOUR_CONSUMER_SECRET>
157
+ - DUMMY_DEVICES=http://iot-sensors:3001
143
158
- MONGO_URL=mongodb://mongo-db:27017
144
159
- IOTA_JSON_LD_CONTEXT=http://context/user-context.jsonld
145
- - " CRATE_DB_SERVICE_URL=http://crate-db:4200/_sql"
146
-
147
- - PIG_COUNT=${PIG_COUNT}
148
- - COW_COUNT=${COW_COUNT}
160
+ - CRATE_DB_SERVICE_URL=http://crate-db:4200/_sql
161
+ - NGSI_LD_TENANT=openiot
149
162
150
163
151
164
# Quantum Leap is persisting Short Term History to Crate-DB
0 commit comments