-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1.18 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
version: '3.0'
networks:
k6:
grafana:
prometheus:
services:
prometheus:
image: prom/prometheus:v2.35.0
command: --web.enable-remote-write-receiver --config.file=/etc/prometheus/prometheus.yml
networks:
- k6
- grafana
- prometheus
ports:
- "9090:9090"
grafana:
image: grafana/grafana:8.5.3
networks:
- grafana
- prometheus
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./config-datasources.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./config-dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./dashboards:/var/lib/grafana/dashboards
php:
image: php:8.1.5-apache
volumes:
- ./php_apache:/var/www/html
ports:
- "8080:80"
k6:
build:
context: .
dockerfile: docker/build-linux-k6.Dockerfile
networks:
- k6
environment:
- K6_PROMETHEUS_REMOTE_URL=http://prometheus:9090/api/v1/write
- K6_OUT=output-nano
depends_on:
- prometheus
volumes:
- ../example:/scripts