diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 18:41:43 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 18:41:43 +0000 |
commit | 1bb86baabe93c387781836e3b401a472cd044475 (patch) | |
tree | d9482ac33a4a16df027c912273dfbafd038f1d01 /docker-compose.yml | |
parent | 450b5ce0582773f4684dfc197f04765b81f429c9 (diff) | |
download | power.eda.gay-1bb86baabe93c387781836e3b401a472cd044475.tar.gz power.eda.gay-1bb86baabe93c387781836e3b401a472cd044475.zip |
Added python MQTT client script that pushes readings to influxdb
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 24 |
1 files changed, 23 insertions, 1 deletions
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: |