File tree 1 file changed +12
-24
lines changed
1 file changed +12
-24
lines changed Original file line number Diff line number Diff line change 1
1
version: "3.5"
2
2
services:
3
3
influxdb:
4
- image: influxdb:1.8-alpine #InfluxDB v2 requires authentication so set to v1
4
+ image: influxdb
5
5
container_name: influxdb
6
6
ports:
7
7
- 8086:8086
8
8
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
23
13
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
32
21
volumes:
33
22
influxdb-storage:
34
- grafana-storage:
You can’t perform that action at this time.
0 commit comments