-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (59 loc) · 1.65 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
version: '3.9'
services:
api:
container_name: "k6-java-api"
build:
context: .
dockerfile: Dockerfile
volumes:
- ./docker-output:/app/output
- ./docker-config/grafana/my-dashboards:/docker-config/grafana/my-dashboards
ports:
- "8080:8080"
environment:
- OTEL_HOST=otel-collector
depends_on:
- otel-collector
otel-collector:
image: otel/opentelemetry-collector-contrib
container_name: "k6-java-otel-collector"
command: [ "--config=/etc/opentelemetry/otel-config.yml" ]
volumes:
- ./docker-config/opentelemetry/otel-config.yml:/etc/opentelemetry/otel-config.yml
ports:
- "4318:4318" # OTLP HTTP
env_file:
- ./env/.env
influxdb:
image: influxdb:latest
container_name: "k6-java-influx"
ports:
- "8086:8086"
env_file:
- ./env/.env
grafana:
image: grafana/grafana:9.1.8
container_name: "k6-java-grafana"
volumes:
- ./docker-config/grafana/provisioning:/usr/share/grafana/custom/
- ./docker-config/grafana/my-dashboards:/usr/share/grafana/public/dashboards
ports:
- "3030:3000"
env_file:
- ./env/.env
environment:
- GF_PANELS_DISABLE_SANITIZE_HTML=TRUE
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_PATHS_PROVISIONING=/usr/share/grafana/custom/
depends_on:
- influxdb
- prometheus
# Not in use
prometheus:
image: prom/prometheus:v2.36.2
container_name: "k6-java-prometheus"
command: [ "--config.file=/etc/prometheus/prometheus.yml" ]
volumes:
- ./docker-config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"