forked from frdmn/docker-speedtest-grafana
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·40 lines (37 loc) · 992 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
39
40
version: '2'
services:
influxdb:
restart: always
image: influxdb:1.5
container_name: influxdb
volumes:
- "./data/influxdb/:/var/lib/influxdb"
ports:
- "${INFLUXDB_PORT}:8086"
environment:
- "INFLUXDB_ADMIN_USER=admin"
- "INFLUXDB_ADMIN_PASSWORD=password"
- "INFLUXDB_DB=speedtest"
grafana:
restart: always
image: grafana/grafana:5.1.0
container_name: grafana
volumes:
- "./docker/grafana/provisioning:/etc/grafana/provisioning"
ports:
- "${GRAFANA_PORT}:3000"
links:
- "influxdb:influxdb"
environment:
- "GF_SERVER_ROOT_URL=http://localhost"
- "GF_SECURITY_ADMIN_PASSWORD=admin"
- "GF_AUTH_ANONYMOUS_ENABLED=true"
speedtest:
restart: always
container_name: speedtest
build: ./docker/speedtest
links:
- "influxdb:influxdb"
environment:
- "SPEEDTEST_INTERVAL=${SPEEDTEST_SPEEDTEST_INTERVAL}"
- "SPEEDTEST_HOST=${SPEEDTEST_HOST}"