This repository has been archived on 2024-05-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
stack-influxdb-grafana/docker-compose.yml
T
2021-09-28 15:12:44 +02:00

42 lines
906 B
YAML

version: "3.7"
services:
influxdb:
image: hypriot/rpi-influxdb
container_name: graph_influxdb
ports:
- '8083:8083'
- '8086:8086'
- '8090:8090'
networks:
- 'monitoring'
env_file:
- 'influxdb.env'
volumes:
- '/docker/influxdb:/var/lib/influxdb'
deploy:
placement:
constraints:
- node.labels.influxdb == true
grafana:
image: grafana/grafana:latest
container_name: graph_grafana
ports:
- "3000:3000"
networks:
- 'monitoring'
env_file:
- 'grafana.env'
user: "0"
volumes:
- '/docker/grafana:/var/lib/grafana'
deploy:
placement:
constraints:
- node.labels.grafana == true
networks:
monitoring:
volumes:
grafana-volume:
external: true
influxdb-volume:
external: true