# WARNING: Do not deploy this tutorial configuration directly to a production environment # # The tutorial docker-compose files have not been written for production deployment and will not # scale. A proper architecture has been sacrificed to keep the narrative focused on the learning # goals, they are just used to deploy everything onto a single Docker machine. All FIWARE components # are running at full debug and extra ports have been exposed to allow for direct calls to services. # They also contain various obvious security flaws - passwords in plain text, no load balancing, # no use of HTTPS and so on. # # This is all to avoid the need of multiple machines, generating certificates, encrypting secrets # and so on, purely so that a single docker-compose file can be read as an example to build on, # not use directly. # # When deploying to a production environment, please refer to the Helm Repository # for FIWARE Components in order to scale up to a proper architecture: # # see: https://github.com/FIWARE/helm-charts/ # version: "3.8" services: # Orion-LD is an NGSI-LD context broker orion-ld: labels: org.fiware: 'tutorial' image: quay.io/fiware/orion-ld:${ORION_LD_VERSION} hostname: orion container_name: fiware-orion-ld depends_on: - mongo-db networks: - default ports: - "${EXPOSED_PORT}:${ORION_LD_PORT}" # localhost:1026 command: -dbhost mongo-db -logLevel DEBUG -experimental healthcheck: test: curl --fail -s http://orion:${ORION_LD_PORT}/version || exit 1 interval: 5s # Tutorial connects to the Orion-LD Broker tutorial: environment: - IOTA_DEFAULT_RESOURCE=/iot/d - DUMMY_DEVICES_PORT=${TUTORIAL_DUMMY_DEVICE_PORT} # Port used by the dummy IOT devices to receive commands - DUMMY_DEVICES_TRANSPORT=HTTP # Default transport used by dummy Io devices - DUMMY_DEVICES_PAYLOAD=ULTRALIGHT - CONTEXT_BROKER=http://orion:${ORION_LD_PORT}/ngsi-ld/v1 # URL of the context broker to update context