forked from frdmn/docker-speedtest-grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·38 lines (35 loc) · 923 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '2'
services:
influxdb:
restart: always
image: influxdb:1.8
ports:
- "8086:8086"
volumes:
- "./data/influxdb/:/var/lib/influxdb"
environment:
- "INFLUXDB_ADMIN_USER=admin"
- "INFLUXDB_ADMIN_PASSWORD=password"
- "INFLUXDB_DB=speedtest"
grafana:
restart: always
image: grafana/grafana:6.7.2
volumes:
- "./docker/grafana/provisioning:/etc/grafana/provisioning"
ports:
- "${GRAFANA_PORT}:3000"
environment:
- "GF_SERVER_ROOT_URL=http://localhost"
- "GF_SECURITY_ADMIN_PASSWORD=admin"
- "GF_AUTH_ANONYMOUS_ENABLED=true"
depends_on:
- influxdb
speedtest:
restart: always
image: frdmn/speedtest-grafana:latest
container_name: speedtest
environment:
- "SPEEDTEST_INTERVAL=${SPEEDTEST_SPEEDTEST_INTERVAL}"
- "SPEEDTEST_HOST=${SPEEDTEST_HOST}"
depends_on:
- influxdb