Skip to content

Commit

Permalink
Split IoT Devices and Tutorial Web-App
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Feb 3, 2025
1 parent 989461e commit 1574d9e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
39 changes: 25 additions & 14 deletions docker-compose/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,39 +113,50 @@ services:
- TENANT=openiot
- DEBUG=broker:*

# Tutorial acts as a series of dummy IoT Sensors over HTTP
# A series of dummy IoT Sensors over HTTP
iot-sensors:
labels:
org.fiware: 'tutorial'
image: quay.io/fiware/tutorials.iot-devices
hostname: iot-sensors
container_name: fiware-iot-devices
networks:
- default
expose:
- "${TUTORIAL_DUMMY_DEVICE_PORT}"
ports:
- "${TUTORIAL_DUMMY_DEVICE_PORT}:${TUTORIAL_DUMMY_DEVICE_PORT}" # localhost:3001
environment:
- DEBUG=devices:*
- WEB_APP_HOST=tutorial
- WEB_APP_PORT=${TUTORIAL_APP_PORT} # Port used by the content provider proxy and web-app for viewing data
- IOTA_HTTP_HOST=iot-agent
- IOTA_HTTP_PORT=${IOTA_SOUTH_PORT}

# Tutorial acts as a Farm Management Information System
tutorial:
labels:
org.fiware: 'tutorial'
image: quay.io/fiware/tutorials.ngsi-ld
hostname: iot-sensors
hostname: tutorial
container_name: fiware-tutorial
depends_on:
- mongo-db
networks:
default:
aliases:
- tutorial
- context-provider
- default
expose:
- "${TUTORIAL_APP_PORT}"
- "${TUTORIAL_DUMMY_DEVICE_PORT}"
ports:
- "${TUTORIAL_APP_PORT}:${TUTORIAL_APP_PORT}" # localhost:3000
- "${TUTORIAL_DUMMY_DEVICE_PORT}:${TUTORIAL_DUMMY_DEVICE_PORT}" # localhost:3001
environment:
- DEBUG=tutorial:*
- WEB_APP_PORT=${TUTORIAL_APP_PORT} # Port used by the content provider proxy and web-app for viewing data
- IOTA_HTTP_HOST=iot-agent
- IOTA_HTTP_PORT=${IOTA_SOUTH_PORT}
- OPENWEATHERMAP_KEY_ID=<ADD_YOUR_KEY_ID>
- TWITTER_CONSUMER_KEY=<ADD_YOUR_CONSUMER_KEY>
- TWITTER_CONSUMER_SECRET=<ADD_YOUR_CONSUMER_SECRET>
- DUMMY_DEVICES=http://iot-sensors:3001
- MONGO_URL=mongodb://mongo-db:27017
- IOTA_JSON_LD_CONTEXT=http://context/user-context.jsonld

- PIG_COUNT=${PIG_COUNT}
- COW_COUNT=${COW_COUNT}
- NGSI_LD_TENANT=openiot

spark-master:
image: bde2020/spark-master:${SPARK_VERSION}
Expand Down
9 changes: 6 additions & 3 deletions services
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ case "${command}" in
echo -e "Starting containers: \033[1;34mOrion\033[0m, \033[1;36mIoT-Agent\033[0m, two \033[1mSpark\033[0m instances (jobmanager taskmanager) and a \033[1mTutorial\033[0m, a linked data \033[1mContext\033[0m , a linked data \033[1mContext\033[0m and \033[1mMongoDB\033[0m database."
echo -e "- \033[1;34mOrion\033[0m is the context broker"
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
echo -e "- \033[1mTutorial\033[0m acts as a series of dummy IoT Sensors over HTTP"
echo -e "- \033[1mTutorial\033[0m displays a web app to manipulate the context directly"
echo -e "- \033[1mIoT Devices\033[0m acts as a series of dummy IoT Sensors over HTTP"
echo -e "- \033[1mApache Spark\033[0m is a stream-processing framework"
echo -e "- Data models \033[1m@context\033[0m (Smart Farm) is supplied externally"
echo ""
Expand All @@ -225,7 +226,8 @@ case "${command}" in
echo -e "Starting containers: \033[1;34mScorpio\033[0m, and a \033[1mPostgres\033[0m database, \033[1;36mIoT-Agent\033[0m, two \033[1mSpark\033[0m instances (jobmanager taskmanager) and a \033[1mTutorial\033[0m, a linked data \033[1mContext\033[0m , a linked data \033[1mContext\033[0m and \033[1mMongoDB\033[0m database."
echo -e "- \033[1;Scorpio\033[0m is the context broker"
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
echo -e "- \033[1mTutorial\033[0m acts as a series of dummy IoT Sensors over HTTP"
echo -e "- \033[1mTutorial\033[0m displays a web app to manipulate the context directly"
echo -e "- \033[1mIoT Devices\033[0m acts as a series of dummy IoT Sensors over HTTP"
echo -e "- \033[1mApache Spark\033[0m is a stream-processing framework"
echo -e "- Data models \033[1m@context\033[0m (Smart Farm) is supplied externally"
echo ""
Expand All @@ -245,7 +247,8 @@ case "${command}" in
echo -e "Starting containers: \033[1;34mStellio\033[0m, \033[1;36mIoT-Agent\033[0m, \033[1mTutorial\033[0m, \033[1mKafka\033[0m, \033[1mPostgreSQL/TimescaleDB\033[0m, and a linked data \033[1mContext\033[0m."
echo -e "- \033[1;Stellio\033[0m is the context broker"
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
echo -e "- \033[1mTutorial\033[0m acts as a series of dummy IoT Sensors over HTTP"
echo -e "- \033[1mTutorial\033[0m displays a web app to manipulate the context directly"
echo -e "- \033[1mIoT Devices\033[0m acts as a series of dummy IoT Sensors over HTTP"
echo -e "- \033[1mApache Spark\033[0m is a stream-processing framework"
echo -e "- Data models \033[1m@context\033[0m (Smart Farm) is supplied externally"
echo ""
Expand Down

0 comments on commit 1574d9e

Please sign in to comment.