diff --git a/docker-compose/common.yml b/docker-compose/common.yml index 7c86656..6e115f1 100644 --- a/docker-compose/common.yml +++ b/docker-compose/common.yml @@ -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= - - TWITTER_CONSUMER_KEY= - - TWITTER_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} diff --git a/services b/services index b78715d..f9a3b41 100755 --- a/services +++ b/services @@ -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 "" @@ -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 "" @@ -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 ""