From 97a413ec23162e711e446d7ad7e040f0e98d47e1 Mon Sep 17 00:00:00 2001 From: Alexandre Lamberty Date: Mon, 24 Jul 2023 19:22:54 +0200 Subject: [PATCH] add messagin and broker --- docker-compose.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 8fa1905..d4878d0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -20,6 +20,17 @@ services: - 3333 depends_on: - database + messaging: + image: alexandrelamberty/nidus-messaging:${API_IMAGE_TAG} + environment: + - MQTT_SERVER=${MQTT_SERVER} + - MQTT_CLIENT_ID=${MQTT_CLIENT} + - MQTT_USERNAME=${MQTT_USERNAME} + - MQTT_PASSWORD=${MQTT_PASSWORD} + ports: + - 3333 + depends_on: + - broker web: image: alexandrelamberty/nidus-web:${WEB_IMAGE_TAG} environment: @@ -47,6 +58,12 @@ services: - database_config:/data/configdb - ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js restart: always + broker: + image: emqx/emqx:latest + restart: always + environment: + EMQX_NAME: foo_emqx + EMQX_HOST: 127.0.0.1 mongo-express: image: mongo-express container_name: nidus-mongo-express