added network and storage

This commit is contained in:
2021-09-28 15:11:18 +02:00
parent 269c793bbf
commit ba44ceb829
+12 -1
View File
@@ -7,6 +7,8 @@ services:
- '8083:8083'
- '8086:8086'
- '8090:8090'
networks:
- 'monitoring'
env_file:
- 'influxdb.env'
volumes:
@@ -20,6 +22,8 @@ services:
container_name: graph_grafana
ports:
- "3000:3000"
networks:
- 'monitoring'
env_file:
- 'grafana.env'
user: "0"
@@ -28,4 +32,11 @@ services:
deploy:
placement:
constraints:
- node.labels.grafana == true
- node.labels.grafana == true
networks:
monitoring:
volumes:
grafana-volume:
external: 'true'
influxdb-volume:
external: 'true'