-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (105 loc) · 2.57 KB
/
docker-compose.yml
File metadata and controls
111 lines (105 loc) · 2.57 KB
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
107
108
109
110
111
version: '2.4'
networks:
default:
services:
application:
image: kissy/mock-load-testing:1.2.1
restart: always
networks:
- default
ports:
- 8080:8080
- 9090:9090
- 8081:8081
environment:
- SERVER_TOMCAT_ACCEPT-COUNT=10
- SERVER_TOMCAT_MAX-THREADS=20
- DATASOURCE_EXECUTOR_POOL_SIZE=10
- JAVA_TOOL_OPTIONS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -XX:MaxRAMPercentage=50.0 -XX:InitialRAMPercentage=50.0 -XX:+UseG1GC
mem_limit: 512m
cpus: 2
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/actuator/health"]
interval: 10s
timeout: 10s
retries: 3
start_period: 10s
labels:
fr.kissy.load-testing.monitoring: "true"
influxdb:
image: influxdb:1.8.6-alpine
restart: always
networks:
- default
ports:
- 8086:8086
environment:
- INFLUXDB_DB=loadtesting
mem_limit: 256m
cpus: 2
healthcheck:
test: ["CMD", "busybox", "wget", "--spider", "-q", "http://localhost:8086/health"]
interval: 3s
timeout: 10s
retries: 3
telegraf:
image: telegraf:1.19-alpine
restart: always
depends_on:
influxdb:
condition: service_healthy
application:
condition: service_started
networks:
- default
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
mem_limit: 128m
cpus: 2
grafana:
image: grafana/grafana:7.2.2
restart: always
depends_on:
influxdb:
condition: service_started
dns: 8.8.8.8
networks:
- default
ports:
- 3000:3000
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Editor
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./grafana:/etc/grafana/provisioning/
mem_limit: 128m
cpus: 2
healthcheck:
test: ["CMD", "busybox", "wget", "--spider", "-q", "http://localhost:3000/api/health"]
interval: 3s
timeout: 10s
retries: 3
k6:
image: loadimpact/k6:latest
depends_on:
influxdb:
condition: service_healthy
application:
condition: service_healthy
networks:
- default
ports:
- 6565:6565
environment:
- K6_OUT=influxdb=http://influxdb:8086/loadtesting
volumes:
- ./tests:/scripts
mem_limit: 512m
cpus: 2
healthcheck:
test: [ "CMD", "busybox", "wget", "--spider", "-q", "http://localhost:6565/v1/status" ]
interval: 3s
timeout: 10s
retries: 3