-
Notifications
You must be signed in to change notification settings - Fork 33
/
compose.k6.yml
49 lines (47 loc) · 1.5 KB
/
compose.k6.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
services:
k6:
container_name: ${HARBOR_CONTAINER_PREFIX}.k6
image: ${HARBOR_K6_IMAGE}:${HARBOR_K6_VERSION}
ports:
- ${HARBOR_K6_HOST_PORT}:6565
env_file:
- ./.env
- ./k6/override.env
environment:
- K6_OUT=influxdb=http://k6-influxdb:8086/k6
volumes:
- ./k6/scripts:/scripts
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- harbor-network
k6-influxdb:
container_name: ${HARBOR_CONTAINER_PREFIX}.k6-influxdb
image: ${HARBOR_K6_INFLUXDB_IMAGE}:${HARBOR_K6_INFLUXDB_VERSION}
ports:
- ${HARBOR_K6_INFLUXDB_HOST_PORT}:8086
env_file:
- ./.env
- ./k6/override.env
networks:
- harbor-network
k6-grafana:
container_name: ${HARBOR_CONTAINER_PREFIX}.k6-grafana
image: ${HARBOR_K6_GRAFANA_IMAGE}:${HARBOR_K6_GRAFANA_VERSION}
ports:
- ${HARBOR_K6_GRAFANA_HOST_PORT}:3000
env_file:
- ./.env
- ./k6/override.env
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
- GF_SERVER_SERVE_FROM_SUB_PATH=true
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH="/var/lib/grafana/dashboards/k6-load-testing-results_rev3.json"
volumes:
- ./k6/dashboards:/var/lib/grafana/dashboards
- ./k6/grafana-dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./k6/grafana-datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
networks:
- harbor-network