Add restart:always #10

This commit is contained in:
Robin-Manuel Thiel
2023-06-16 18:04:36 +02:00
committed by GitHub
parent a3975ce848
commit 1f3c8db8a4
2 changed files with 13 additions and 4 deletions
+2
View File
@@ -50,6 +50,7 @@ services:
influxdb:
image: influxdb:1.8.3
restart: always
volumes:
- influxdb:/var/lib/influxdb
ports:
@@ -62,6 +63,7 @@ services:
speedtest:
image: robinmanuelthiel/speedtest:latest
restart: always
environment:
- LOOP=true
- LOOP_DELAY=1800
+11 -4
View File
@@ -1,20 +1,23 @@
version: "3"
services:
grafana:
image: grafana/grafana:latest
image: grafana/grafana:7.5.2
restart: always
ports:
- 3000:3000
volumes:
- grafana:/var/lib/grafana
depends_on:
- influxdb
influxdb:
image: influxdb
image: influxdb:1.8.3
restart: always
volumes:
- influxdb:/var/lib/influxdb
ports:
- "8083:8083"
- "8086:8086"
- 8083:8083
- 8086:8086
environment:
- INFLUXDB_ADMIN_USER="admin"
- INFLUXDB_ADMIN_PASSWORD="password"
@@ -22,6 +25,7 @@ services:
speedtest:
image: robinmanuelthiel/speedtest:latest
restart: always
environment:
- LOOP=true
- LOOP_DELAY=1800
@@ -30,6 +34,9 @@ services:
- DB_NAME=speedtest
- DB_USERNAME=admin
- DB_PASSWORD=password
privileged: true # Needed for 'sleep' in the loop
depends_on:
- influxdb
volumes:
grafana: