Skip to content

Commit

Permalink
NOISSUE - Use VerneMQ as the dafault MQTT broker (absmach#2064)
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Borovcanin <[email protected]>
  • Loading branch information
dborovcanin authored Jan 24, 2024
1 parent 24d3804 commit 8424ef9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 8424ef9

Please sign in to comment.