- "description": "In the *minimal* configuration, **STH-Comet** is used to persisting historic context data and also used to make time-based queries.\nAll operations take place on the same port `8666`. The MongoDB instance listening on the standard\n`27017` port is used to hold data the historic context data as well as holding data related to the **Orion Context Broker** and the **IoT Agent**.\nThe overall architecture can be seen below:\n\n\n\n## Database Server Configuration\n\n```yaml\n mongo-db:\n image: mongo:3.6\n hostname: mongo-db\n container_name: db-mongo\n ports:\n - \"27017:27017\"\n networks:\n - default\n\n```\n\n## STH-Comet Configuration \n\n```yaml\n sth-comet:\n image: fiware/sth-comet\n hostname: sth-comet\n container_name: fiware-sth-comet\n depends_on:\n - mongo-db\n networks:\n - default\n ports:\n - \"8666:8666\"\n environment:\n - STH_HOST=0.0.0.0\n - STH_PORT=8666\n - DB_PREFIX=sth_\n - DB_URI=mongo-db:27017\n - LOGOPS_LEVEL=DEBUG\n```\n\nThe `sth-comet` container is listening on one port: \n\n* The Operations for port for STH-Comet - `8666` is where the service will be listening for notifications from the Orion context broker as well\n as time based query requests from cUrl or Postman\n\nThe `sth-comet` container is driven by environment variables as shown:\n\n| Key |Value |Description|\n|------------|-----------------|-----------|\n|STH_HOST |`0.0.0.0` | The address where STH-Comet is hosted - within this container it means all IPv4 addresses on the local machine |\n|STH_PORT |`8666` | Operations Port that STH-Comet listens on, it is also used when subscribing to context data changes |\n|DB_PREFIX |`sth_` | The prefix added to each database entity if none is provided |\n|DB_URI |`mongo-db:27017` | The Mongo-DB server which STH-Comet will contact to persist historical context data |\n|LOGOPS_LEVEL|`DEBUG` | The logging level for STH-Comet |\n\n\n## *minimal* configuration - Start up\n\nTo start the system using the *minimal* configuration using **STH-Comet** only, run the following command:\n\n```console\n./services sth-comet\n``` \n\n",
0 commit comments