-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
73 lines (73 loc) · 1.6 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "3.7"
volumes:
k6_store:
networks:
test_net:
grafana:
services:
# haskell_http_server:
# image: hs-test-server
# ports:
# - "8080:8080"
# networks:
# - test_net
# profiles:
# - http-hs
# cpu_count: ${CORES}
# rust_http_server:
# image: rs-test-server-http
# ports:
# - "8080:8080"
# networks:
# - test_net
# profiles:
# - http-rs
# cpu_count: ${CORES}
# rust_grpc_server:
# image: rs-test-server-grpc
# ports:
# - "8080:8080"
# networks:
# - test_net
# profiles:
# - grpc
# cpu_count: ${CORES}
influxdb:
image: influxdb:1.8
networks:
- test_net
- grafana
ports:
- "8086:8086"
environment:
- INFLUXDB_DB=k6
grafana:
image: grafana/grafana:latest
networks:
- grafana
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./config/dashboards:/var/lib/grafana/dashboards
- ./config/grafana-dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./config/grafana-datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
k6:
image: grafana/k6:latest
command: run /scripts/${SCRIPT}
# command: run /scripts/http-hs.js
# command: run /scripts/grpc.js
profiles:
- test
networks:
- test_net
- grafana
ports:
- "6565:6565"
environment:
- K6_OUT=influxdb=http://influxdb:8086/k6
volumes:
- ./scripts:/scripts