@@ -112,40 +112,53 @@ services:
112112 - TENANT=openiot
113113 - DEBUG=broker:*
114114
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
116138 tutorial :
117139 labels :
118140 org.fiware : ' tutorial'
119141 image : quay.io/fiware/tutorials.ngsi-ld
120- hostname : iot-sensors
142+ hostname : tutorial
121143 container_name : fiware-tutorial
122144 depends_on :
123145 - mongo-db
124146 networks :
125- default :
126- aliases :
127- - tutorial
128- - context-provider
147+ - default
129148 expose :
130149 - " ${TUTORIAL_APP_PORT}"
131- - " ${TUTORIAL_DUMMY_DEVICE_PORT}"
132150 ports :
133151 - " ${TUTORIAL_APP_PORT}:${TUTORIAL_APP_PORT}" # localhost:3000
134- - " ${TUTORIAL_DUMMY_DEVICE_PORT}:${TUTORIAL_DUMMY_DEVICE_PORT}" # localhost:3001
135152 environment :
136153 - DEBUG=tutorial:*
137154 - WEB_APP_PORT=${TUTORIAL_APP_PORT} # Port used by the content provider proxy and web-app for viewing data
138155 - IOTA_HTTP_HOST=iot-agent
139156 - 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
143158 - MONGO_URL=mongodb://mongo-db:27017
144159 - 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
149162
150163
151164 # Quantum Leap is persisting Short Term History to Crate-DB
0 commit comments