File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version: "3.5"
22services:
33 influxdb:
4- image: influxdb:1.8-alpine #InfluxDB v2 requires authentication so set to v1
4+ image: influxdb
55 container_name: influxdb
66 ports:
77 - 8086:8086
88 volumes:
9- - influxdb-storage:/var/lib/influxdb
10- grafana:
11- image: grafana/grafana
12- container_name: grafana
13- depends_on:
14- - influxdb
15- ports:
16- - 3000:3000
17- volumes:
18- - grafana-storage:/var/lib/grafana
19- - ./grafana-provisioning/:/etc/grafana/provisioning
20- environment:
21- - GF_SECURITY_ADMIN_USER=admin
22- - GF_SECURITY_ADMIN_PASSWORD=admin
9+ - influxdb-storage:/var/lib/influxdb2
10+ environment:
11+ - INFLUXD_SESSION_LENGTH=432000
12+ restart: always
2313 vuegraf:
24- image: jertel/vuegraf
25- container_name: vuegraf
26- depends_on:
27- - influxdb
28- volumes:
29- - /home/myusername/vuegraf:/opt/vuegraf/conf #This assumes you have created a folder called vuegraf and placed the vuegraf.json file inside of it.
30- restart: always #This is necessary or vuegraf will not connect to InfluxDB, due to the fact that the call needs to wait.
31- #Similar could be done by adding 'sleep' in docker-compose-run.sh but requires separating the services into different yaml files.
14+ image: jertel/vuegraf
15+ container_name: vuegraf
16+ depends_on:
17+ - influxdb
18+ volumes:
19+ - /home/myusername/vuegraf:/opt/vuegraf/conf #This assumes you have created a folder called vuegraf and placed the vuegraf.json file inside of it.
20+ restart: always
3221volumes:
3322 influxdb-storage:
34- grafana-storage:
You can’t perform that action at this time.
0 commit comments