-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·103 lines (96 loc) · 2.32 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
##
## -----------------------------------
## | S P E E D T E S T - D O C K E R |
## -----------------------------------
##
## Container based media tools configuration
##
## -- DO NOT EDIT THIS FILE --
##
## Configuration items for this file are taken from the .env file
##
## Have docker-compose.yml and .env in the same directory to launch the stack
version: '3'
######################
# SERVICES TO LAUNCH #
######################
services:
# ----------------------------------------
# InfluxDB
# Time Series Database
# ----------------------------------------
influxdb:
image: influxdb:1.8.4
container_name: influxdb
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-file: '${LOG_FILE_NUM}'
max-size: '${LOG_FILE_SIZE}'
networks:
- internal
expose:
- 8086
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
- INFLUXDB_DB=speedtest;
volumes:
- '${BASE_DOCKER_PATH}/influxdb:/var/lib/influxdb'
# ----------------------------------------
# Chronograf
# Dashboard Tool for Speedtest
# ----------------------------------------
chronograf:
image: chronograf
container_name: chronograf
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-file: '${LOG_FILE_NUM}'
max-size: '${LOG_FILE_SIZE}'
networks:
- internal
ports:
- '${CHRONOGRAF_PORT}:8888'
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
volumes:
- '${BASE_DOCKER_PATH}/chronograf:/var/lib/chronograf'
command:
- chronograf
- --influxdb-url=http://influxdb:8086
depends_on:
- influxdb
# ----------------------------------------
# Speedtest
# Speedtest-CLI and Post to InfluxDB
# ----------------------------------------
speedtest:
image: phikai/speedtest
container_name: speedtest
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-file: '${LOG_FILE_NUM}'
max-size: '${LOG_FILE_SIZE}'
networks:
- internal
environment:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
- TEST_INTERVAL=${SPEEDTEST_INTERVAL}
depends_on:
- influxdb
########################
# GLOBAL CONFIGURATION #
########################
networks:
internal: