-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
44 lines (41 loc) · 1.17 KB
/
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
41
42
43
44
version: '3.4'
services:
influxdb:
image: influxdb:1.8.4
restart: always
ports:
- 8086:8086
volumes:
- ./influxdb:/var/lib/influxdb
environment:
- INFLUXDB_ADMIN_USER=${INFLUXDB_ADMIN_USER}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_ADMIN_PASSWORD}
- INFLUXDB_DB=${INFLUXDB_DB}
grafana:
restart: always
image: grafana/grafana:7.5.4
volumes:
- ./grafana:/etc/grafana/provisioning
ports:
- ${GRAFANA_PORT}:3000
environment:
- GF_AUTH_ANONYMOUS_ENABLED=${GF_AUTH_ANONYMOUS_ENABLED}
depends_on:
- influxdb
speedtest:
restart: always
network_mode: host
build: ./speedtest
image: turbothinh/network-speedtest:latest
environment:
- CRON_CONFIG=${CRON_CONFIG}
- SPEEDTEST_HOST=${SPEEDTEST_HOST}
- SPEEDTEST_SERVER_ID=${SPEEDTEST_SERVER_ID}
- INFLUXDB_DB=${INFLUXDB_DB}
- INFLUXDB_ADMIN_USER=${INFLUXDB_ADMIN_USER}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_ADMIN_PASSWORD}
depends_on:
- influxdb
# Only enable this volume in development, otherwise host volume will override docker work folder
# volumes:
# - ./speedtest/src:/src