From 3af15247005bb45f632a91bdf3232b04899ebc65 Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Fri, 29 Jul 2022 08:41:57 +0200 Subject: [PATCH] Add 'docker-compose.yaml' --- docker-compose.yaml | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..09462cf --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,53 @@ +version: "3.8" + +services: + mosquitto: + image: eclipse-mosquitto:latest + restart: always + ports: + - "1883:1883" + - "9001:9001" + networks: + - iot + volumes: + - ./mosquitto.conf:/mosquitto/config/mosquitto.conf + + influxdb: + image: influxdb + restart: always + ports: + - "8086:8086" + networks: + - iot + volumes: + - influxdb-data:/var/lib/influxdb + + telegraf: + image: telegraf + restart: always + volumes: + - ./telegraf.conf:/etc/telegraf/telegraf.conf:ro + depends_on: + - mosquitto + - influxdb + networks: + - iot + + grafana: + image: grafana/grafana-oss + restart: always + ports: + - "3000:3000" + networks: + - iot + volumes: + - grafana-data:/var/lib/grafana + depends_on: + - influxdb + +networks: + iot: + +volumes: + influxdb-data: + grafana-data: \ No newline at end of file