diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 18:27:15 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 18:27:15 +0000 |
commit | d31d273073eec5220b4eb6cbeb576b3661ec6d7b (patch) | |
tree | 9167a85a77b597cd648f07eb8a36fc18ae3faaf1 /docker-compose.yml | |
parent | 224c7385c9f2c0eafd7751bf8e100ab5d8c52345 (diff) | |
download | power.eda.gay-d31d273073eec5220b4eb6cbeb576b3661ec6d7b.tar.gz power.eda.gay-d31d273073eec5220b4eb6cbeb576b3661ec6d7b.zip |
Added python script to subscribe to MQTT topics and push them to InfluxDB
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index daaeb5c..0ca01a6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,10 +8,34 @@ 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: + influxdb-config: + influxdb-data: |