-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
54 lines (50 loc) · 1.4 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.8'
networks:
k6:
grafana:
influxdb:
services:
influxdb:
image: influxdb:2.0-alpine
networks:
- k6
- grafana
- influxdb
ports:
- "8086:8086"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=croco
- DOCKER_INFLUXDB_INIT_PASSWORD=password1
- DOCKER_INFLUXDB_INIT_ORG=k6io
- DOCKER_INFLUXDB_INIT_BUCKET=demo
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=EEKpryGZk8pVDXmIuy484BKUxM5jOEDv7YNoeNZUbsNbpbPbP6kK_qY9Zsyw7zNnlZ7pHG16FYzNaqwLMBUz8g==
grafana:
image: grafana/grafana:8.2.6
networks:
- grafana
- influxdb
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./grafana:/etc/grafana/provisioning/
k6:
build: .
networks:
- k6
ports:
- "6565:6565"
environment:
- K6_OUT=xk6-influxdb=http://influxdb:8086
- K6_INFLUXDB_ORGANIZATION=k6io
- K6_INFLUXDB_BUCKET=demo
- K6_INFLUXDB_INSECURE=true
# NOTE: This is an Admin token, it's not suggested to use this configuration in production.
# Instead, use a Token with restricted privileges.
- K6_INFLUXDB_TOKEN=EEKpryGZk8pVDXmIuy484BKUxM5jOEDv7YNoeNZUbsNbpbPbP6kK_qY9Zsyw7zNnlZ7pHG16FYzNaqwLMBUz8g==
volumes:
- ./samples:/scripts