diff --git a/docker/.env b/docker/.env index 8cc0e95df7..a24687f15d 100644 --- a/docker/.env +++ b/docker/.env @@ -12,7 +12,7 @@ MG_NGINX_MQTTS_PORT=8883 MG_NATS_PORT=4222 MG_NATS_HTTP_PORT=8222 MG_NATS_JETSTREAM_KEY=u7wFoAPgXpDueXOFldBnXDh4xjnSOyEJ2Cb8Z5SZvGLzIZ3U4exWhhoIBZHzuNvh -MG_NATS_URL=nats://nats:${MG_NATS_PORT} +MG_NATS_URL=nats://broker:${MG_NATS_PORT} # Configs for nats as MQTT broker MG_NATS_HEALTH_CHECK=http://nats:${MG_NATS_HTTP_PORT}/healthz MG_NATS_WS_TARGET_PATH= @@ -39,15 +39,15 @@ MG_VERNEMQ_WS_TARGET_PATH=/mqtt MG_VERNEMQ_MQTT_QOS=2 ## MQTT Broker -MG_MQTT_BROKER_TYPE=nats -MG_MQTT_BROKER_HEALTH_CHECK=${MG_NATS_HEALTH_CHECK} -MG_MQTT_ADAPTER_MQTT_QOS=${MG_NATS_MQTT_QOS} +MG_MQTT_BROKER_TYPE=vernemq +MG_MQTT_BROKER_HEALTH_CHECK=${MG_VERNEMQ_HEALTH_CHECK} +MG_MQTT_ADAPTER_MQTT_QOS=${MG_VERNEMQ_MQTT_QOS} MG_MQTT_ADAPTER_MQTT_TARGET_HOST=${MG_MQTT_BROKER_TYPE} MG_MQTT_ADAPTER_MQTT_TARGET_PORT=1883 MG_MQTT_ADAPTER_MQTT_TARGET_HEALTH_CHECK=${MG_MQTT_BROKER_HEALTH_CHECK} MG_MQTT_ADAPTER_WS_TARGET_HOST=${MG_MQTT_BROKER_TYPE} MG_MQTT_ADAPTER_WS_TARGET_PORT=8080 -MG_MQTT_ADAPTER_WS_TARGET_PATH=${MG_NATS_WS_TARGET_PATH} +MG_MQTT_ADAPTER_WS_TARGET_PATH=${MG_VERNEMQ_WS_TARGET_PATH} ## Redis MG_REDIS_TCP_PORT=6379 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 82c9b8dcf0..c64b3204b7 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -474,7 +474,7 @@ services: container_name: magistrala-mqtt depends_on: - things - - nats + - broker restart: on-failure environment: MG_MQTT_ADAPTER_LOG_LEVEL: ${MG_MQTT_ADAPTER_LOG_LEVEL} @@ -525,7 +525,7 @@ services: container_name: magistrala-http depends_on: - things - - nats + - broker restart: on-failure environment: MG_HTTP_ADAPTER_LOG_LEVEL: ${MG_HTTP_ADAPTER_LOG_LEVEL} @@ -570,7 +570,7 @@ services: container_name: magistrala-coap depends_on: - things - - nats + - broker restart: on-failure environment: MG_COAP_ADAPTER_LOG_LEVEL: ${MG_COAP_ADAPTER_LOG_LEVEL} @@ -620,7 +620,7 @@ services: container_name: magistrala-ws depends_on: - things - - nats + - broker restart: on-failure environment: MG_WS_ADAPTER_LOG_LEVEL: ${MG_WS_ADAPTER_LOG_LEVEL}