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:29:07 +02:00

45 lines
982 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:
mode: replicated
replicas: 1
placement:
constraints: [node.labels.influx == true]
grafana:
image: grafana/grafana:latest
container_name: graph_grafana
ports:
- "3001:3000"
networks:
- 'monitoring'
env_file:
- 'grafana.env'
user: "0"
volumes:
- '/docker/grafana:/var/lib/grafana'
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.labels.grafana == true
networks:
monitoring:
volumes:
grafana-volume:
external: true
influxdb-volume:
external: true