summaryrefslogtreecommitdiff
path: root/compose.yaml
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-10-17 12:09:17 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-10-17 12:09:17 -0300
commite8afe14b2e6b7190bb9f2a578f12b68302aa161f (patch)
treeea6b1f76bc0a8aaed9fb62110a103c036280e44a /compose.yaml
parenta4fec975a665b6ebcb07fd7451e381f49f3c497a (diff)
refactor: Configuração de redes sensata
Diffstat (limited to 'compose.yaml')
-rw-r--r--compose.yaml8
1 files changed, 7 insertions, 1 deletions
diff --git a/compose.yaml b/compose.yaml
index 4e4def4..db32d4c 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -17,12 +17,18 @@ services:
- type: bind
source: ./mosquitto-config/
target: /mosquitto/config/
+ networks:
+ - mosquitto
mqtt-client:
environment:
MQTT_CLIENT_USER: ${MQTT_CLIENT_USER}
MQTT_CLIENT_PASSWORD: ${MQTT_CLIENT_PASSWORD}
build:
context: ./mqtt_client/
- network_mode: "service:mosquitto"
+ networks:
+ - mosquitto
depends_on:
- mosquitto
+
+networks:
+ mosquitto: