From 1bb86baabe93c387781836e3b401a472cd044475 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 19 Nov 2023 18:41:43 +0000 Subject: Added python MQTT client script that pushes readings to influxdb --- docker-compose.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index daaeb5c..7c511ac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,10 +8,32 @@ services: - 9001:9001 volumes: - ./mosquitto.conf:/mosquitto/config/mosquitto.conf - - ./.passwords://mosquitto/passwd_file + - ./.passwords:/mosquitto/passwd_file - mosquitto-data:/mosquitto/data - mosquitto-logs:/mosquitto/log + influxdb: + image: influxdb:2.0 + ports: + - 8086:8086 + volumes: + - ./influxdb-config:/etc/influxdb2 + - ./influxdb-data:/var/lib/influxdb2 + env_file: + - ./config.env + depends_on: + - mqtt + + mqtt_client: + image: jwansek/mqtt-client + build: + context: ./mqtt-client + dockerfile: Dockerfile + env_file: + - ./config.env + depends_on: + - influxdb + volumes: mosquitto-data: mosquitto-logs: -- cgit v1.2.3