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