-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose-load.yml
43 lines (42 loc) · 1.48 KB
/
docker-compose-load.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
## Ref: https://github.com/grafana/xk6-output-prometheus-remote/blob/main/docker-compose.yml
## Ref: https://k6.io/docs/results-output/real-time/prometheus-remote-write/
networks:
load-net:
name: load-net
monitoring-net:
name: monitoring-net
external: true
mojaloop-net:
name: mojaloop-net
external: true
services:
k6:
image: grafana/k6:${K6_VERSION}
sysctls:
# websockets do not have keep-alive, resulting in many TIME_WAIT sockets
net.ipv4.tcp_tw_reuse: 1
env_file:
- .env
- perf.env
- perf.override.env
command:
- run
# - '--help' ## Useful to list run options
# - '--http-debug=full'
- '--include-system-env-vars'
- '/scripts/index.js'
networks:
- load-net
- monitoring-net
- mojaloop-net
ports:
- "5665:5665"
environment:
- K6_SCRIPT_CONFIG_FILE_NAME=${K6_SCRIPT_CONFIG_FILE_NAME:-test.json}
- K6_SCRIPT_CONFIG_FOLDER_NAME=${K6_SCRIPT_CONFIG_FOLDER_NAME}
- K6_WEB_DASHBOARD=true
# - K6_PROMETHEUS_RW_SERVER_URL=http://prometheus:9090/api/v1/write # Ref: https://k6.io/docs/results-output/real-time/prometheus-remote-write/#options
# - K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM=true # Ref: https://k6.io/docs/results-output/real-time/prometheus-remote-write/#options
# - K6_OUT=experimental-prometheus-rw # Ref: https://k6.io/docs/results-output/real-time/prometheus-remote-write/
volumes:
- ./packages/k6-tests:/scripts