Skip to content

Commit

Permalink
Add restart:always robinmanuelthiel#10
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmanuelthiel authored Jun 16, 2023
1 parent a3975ce commit 1f3c8db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ services:

influxdb:
image: influxdb:1.8.3
restart: always
volumes:
- influxdb:/var/lib/influxdb
ports:
Expand All @@ -62,6 +63,7 @@ services:

speedtest:
image: robinmanuelthiel/speedtest:latest
restart: always
environment:
- LOOP=true
- LOOP_DELAY=1800
Expand Down
15 changes: 11 additions & 4 deletions demo/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
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"
- INFLUXDB_DB="speedtest"

speedtest:
image: robinmanuelthiel/speedtest:latest
restart: always
environment:
- LOOP=true
- LOOP_DELAY=1800
Expand All @@ -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:
Expand Down

0 comments on commit 1f3c8db

Please sign in to comment.