-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.21 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
version: '3'
services:
netdata:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- 19999:19999
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- ./mocks/tmp:/usr/local/apache2/logs:ro
depends_on:
- springboot2
- httpd
springboot2:
build: mocks/springboot2
ports:
- 8080:8080
logstash:
image: docker.elastic.co/logstash/logstash:7.3.1
ports:
- 9600:9600
httpd:
image: httpd:2.4
volumes:
- ./mocks/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
- ./mocks/tmp:/usr/local/apache2/logs:rw
blackbox_probe:
build: mocks/blackbox
depends_on:
- springboot2
- httpd
command:
- '/bin/sh'
- '-c'
- |
while :; do
curl -o /dev/null http://springboot2:8080/hello || :
curl -o /dev/null http://springboot2:8080/hello || :
curl -o /dev/null http://springboot2:8080/ || :
curl -o /dev/null http://httpd/ || :
curl -o /dev/null -XPOST http://httpd/post || :
curl -o /dev/null http://httpd/not_exist || :
sleep 0.7
done