aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml4
-rw-r--r--mqtt-client/Dockerfile2
-rw-r--r--prometheus/prometheus.yml4
3 files changed, 9 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index c164e11..1a0309e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -31,11 +31,13 @@ services:
build:
context: ./mqtt-client
dockerfile: Dockerfile
+ ports:
+ - 8000:8000
env_file:
- ./config.env
depends_on:
- influxdb
- - prometheus
+ - pushgateway
restart: unless-stopped
snmp_client:
diff --git a/mqtt-client/Dockerfile b/mqtt-client/Dockerfile
index ad59f9b..12c8a53 100644
--- a/mqtt-client/Dockerfile
+++ b/mqtt-client/Dockerfile
@@ -6,5 +6,7 @@ RUN apt-get install -y python3-pip iputils-ping
COPY . /app
WORKDIR /app
RUN pip3 install -r requirements.txt
+RUN pip3 install docker
+RUN pip3 install -r TasmotaCLI/requirements.txt
ENTRYPOINT ["python3"]
CMD ["mqtt-client.py"]
diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml
index 8411313..efa9871 100644
--- a/prometheus/prometheus.yml
+++ b/prometheus/prometheus.yml
@@ -9,3 +9,7 @@ scrape_configs:
static_configs:
- targets:
- pushgateway:9091
+ - job_name: mqtt
+ static_configs:
+ - targets:
+ - mqtt_client:8000