Skip to content

Commit 090df3f

Browse files
authored
Remove grafana refs, switch to influxdb2
1 parent 742a1c9 commit 090df3f

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

docker-compose.yaml.template

+12-24
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,22 @@
11
version: "3.5"
22
services:
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
3221
volumes:
3322
influxdb-storage:
34-
grafana-storage:

0 commit comments

Comments
 (0)