-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
84 lines (81 loc) · 2.15 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
version: '3.7'
services:
ndt-server:
image: ndt-server
volumes:
- ./certs:/certs
- ./html:/html
- ./schemas:/schemas
- ./resultsdir:/resultsdir
- ./localgcs:/localgcs
cap_drop:
- ALL
depends_on:
generate-schemas:
condition: service_completed_successfully
# NOTE: All service containers will use the same network and IP. All ports
# must be configured on the first.
ports:
# ndt-server prometheus, alt TLS and alt non-tls ports.
- target: 9990
published: 9990
protocol: tcp
mode: bridge
- target: 4443
published: 4443
protocol: tcp
mode: bridge
- target: 8080
published: 8080
protocol: tcp
mode: bridge
# jostler prometheus.
- target: 9991
published: 9991
protocol: tcp
mode: bridge
command:
- /ndt-server
- -cert=/certs/cert.pem
- -key=/certs/key.pem
- -datadir=/resultsdir/ndt
- -ndt7_addr=:4443
- -ndt7_addr_cleartext=:8080
- -compress-results=false
- -prometheusx.listen-address=:9990
jostler:
image: measurementlab/jostler:v1.0.7
volumes:
- ./resultsdir:/resultsdir
- ./schemas:/schemas
- ./localgcs:/localgcs
network_mode: "service:ndt-server"
depends_on:
generate-schemas:
condition: service_completed_successfully
command:
- -gcs-local-disk
- -mlab-node-name=ndt-mlab1-lga01.mlab-sandbox.measurement-lab.org
- -gcs-bucket=newclient,download,upload
- -gcs-data-dir=/localgcs/autoload/v1
- -local-data-dir=/resultsdir
- -experiment=ndt
- -datatype=ndt7
- -datatype-schema-file=ndt7:/schemas/ndt7.json
- -bundle-size-max=81920
- -bundle-age-max=10s
- -missed-age=20s
- -missed-interval=15s
- -verbose
- -prometheusx.listen-address=:9991
generate-schemas:
image: ndt-server
build:
context: .
dockerfile: Dockerfile.local
volumes:
- ./schemas:/schemas
entrypoint:
- /go/bin/generate-schemas
- -ndt7=/schemas/ndt7.json
- -ndt5=/schemas/ndt5.json