From 3de376a2e10ee1dbb9fad70e081e65a239708887 Mon Sep 17 00:00:00 2001 From: Michal Maly Date: Thu, 12 Mar 2026 21:48:27 +0100 Subject: [PATCH] Update compose networking --- docker-compose.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ac1ef90..ea864af 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,15 +4,19 @@ services: context: . container_name: mqqt-scrubber restart: unless-stopped - ports: - - "8080:8080" volumes: - ./config.json:/app/config.json:ro environment: MQTT_SCRUBBER_APP_HEALTH_ADDRESS: ":8080" + networks: + - iot-network healthcheck: test: ["CMD", "wget", "-q", "-O-", "http://127.0.0.1:8080/healthz"] interval: 30s timeout: 5s retries: 3 - start_period: 15s \ No newline at end of file + start_period: 15s + +networks: + iot-network: + external: true \ No newline at end of file