-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.k6.yml
More file actions
75 lines (65 loc) · 1.83 KB
/
docker-compose.k6.yml
File metadata and controls
75 lines (65 loc) · 1.83 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
# SPDX-License-Identifier: EUPL-1.2
# Copyright (C) 2026 Gemeente Utrecht
#
# Docker Compose override for k6 performance testing.
# Spins up only postgres, minio, app and k6.
#
# Usage:
# JWT_CLIENT_SECRET=your-secret docker compose -f docker-compose.yml -f docker-compose.k6.yml up --exit-code-from k6
name: dmf-k6
services:
app:
container_name: dmf-k6-app
environment:
ENCRYPTION_SECRET_KEY: ${ENCRYPTION_SECRET_KEY:-changeme-use-a-strong-key-in-production}
ENCRYPTION_SALT: ${ENCRYPTION_SALT:-deadbeefcafe0123456789abcdef0123}
DB_POOL_SIZE: 25
minio:
container_name: dmf-k6-minio
keycloak:
profiles:
- disabled
azurite:
profiles:
- disabled
notificaties-api:
profiles:
- disabled
rabbitmq:
profiles:
- disabled
redis:
profiles:
- disabled
postgres:
container_name: dmf-k6-postgres
volumes:
- /dev/null:/docker-entrypoint-initdb.d/create-databases.sql:ro
k6:
image: grafana/k6:latest
container_name: dmf-k6
user: root
volumes:
- ./k6:/scripts
- ./build/k6:/results
environment:
BASE_URL: http://app:8080
JWT_CLIENT_ID: gzac
JWT_CLIENT_SECRET: ${JWT_CLIENT_SECRET:-your-secret}
EIO_TARGET: ${EIO_TARGET:-1000}
OIO_TARGET: ${OIO_TARGET:-2000}
MAX_VERSIONS: ${MAX_VERSIONS:-5}
RAMP_DURATION: ${RAMP_DURATION:-30s}
STEADY_DURATION: ${STEADY_DURATION:-1m}
MAX_VUS: ${MAX_VUS:-50}
K6_WEB_DASHBOARD: 'true'
K6_WEB_DASHBOARD_EXPORT: /results/test-report.html
entrypoint: [ '/bin/sh', '-c' ]
command:
- |
set -e
k6 run --out json=/results/seed.json /scripts/seed.js
k6 run --out json=/results/perf.json --summary-export /results/perf-summary.json /scripts/perf.js
depends_on:
app:
condition: service_healthy