-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
106 lines (103 loc) · 3.21 KB
/
docker-compose.yaml
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
104
105
106
version: '3.7'
services:
tcpinfo:
image: measurementlab/tcp-info:latest
volumes:
- ./local:/local
# NOTE: All service containers will use the same network and IP. All ports
# must be configured on the first.
ports:
- target: 9990
published: 9990
protocol: tcp
mode: bridge
- target: 9991
published: 9991
protocol: tcp
mode: bridge
- target: 9992
published: 9992
protocol: tcp
mode: bridge
- target: 9993
published: 9993
protocol: tcp
mode: bridge
command:
- -prometheusx.listen-address=:9990
- -output=/local/tcpinfo
- -tcpinfo.eventsocket=/local/tcpevents.sock
- -anonymize.ip=none
uuid-annotator:
image: measurementlab/uuid-annotator:latest
volumes:
- ./local:/local
- ./testdata:/testdata
network_mode: "service:tcpinfo"
# NOTE: all database URLs are required. Minimal, incomplete versions of
# each are included in the testdata directory.
command:
- -prometheusx.listen-address=:9991
- -datadir=/local/annotation
- -tcpinfo.eventsocket=/local/tcpevents.sock
- -ipservice.sock=/local/uuid-annotator.sock
- -maxmind.url=file:///testdata/GeoLite2-City-incomplete.tar.gz
- -routeview-v4.url=file:///testdata/RouteViewIPv4.incomplete.gz
- -routeview-v6.url=file:///testdata/RouteViewIPv6.incomplete.gz
- -siteinfo.url=file:///testdata/annotations-incomplete.json
- -hostname=mlab1-lga0t.mlab-sandbox.measurement-lab.org
trc-scamper1:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./local:/local
network_mode: "service:tcpinfo"
deploy:
# NOTE: traceroute-caller may fail on startup if it tries to read a
# socket that the above services are not yet listening on.
# So, allow restart.
restart_policy:
condition: any
delay: 5s
command:
- -prometheusx.listen-address=:9992
- -tcpinfo.eventsocket=/local/tcpevents.sock
- -ipservice.sock=/local/uuid-annotator.sock
- -IPCacheTimeout=1m
- -IPCacheUpdatePeriod=10s
- -hopannotation-output=/local/hopannotation1
- -scamper.trace-type=mda
- -traceroute-output=/local/scamper1
- -scamper.timeout=30m
- -scamper.waitprobe=15
- -scamper.ptr=true
trc-scamper2:
profiles:
- donotstart
build:
context: .
dockerfile: Dockerfile
volumes:
- ./local:/local
network_mode: "service:tcpinfo"
deploy:
# NOTE: traceroute-caller may fail on startup if it tries to read a
# socket that the above services are not yet listening on.
# So, allow restart.
restart_policy:
condition: any
delay: 5s
command:
- -prometheusx.listen-address=:9993
- -tcpinfo.eventsocket=/local/tcpevents.sock
- -ipservice.sock=/local/uuid-annotator.sock
- -IPCacheTimeout=1m
- -IPCacheUpdatePeriod=10s
- -hopannotation-output=/local/hopannotation1
- -scamper.trace-type=regular
- -traceroute-output=/local/scamper2
- -scamper.timeout=10m
- -scamper.waitprobe=15
- -scamper.ptr=true
- -output.format=json