-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 947 Bytes
/
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
version: '3.8'
networks:
k6:
grafana:
timescaledb:
services:
timescaledb:
image: timescale/timescaledb:latest-pg15
command: postgres -c shared_preload_libraries=timescaledb
networks:
- k6
- grafana
- timescaledb
ports:
- "5432:5432"
environment:
- PGDATA=/var/lib/postgresql/data/timescaledb
- POSTGRES_DB=k6
- POSTGRES_USER=k6
- POSTGRES_PASSWORD=k6
grafana:
image: grafana/grafana:10.0.2
networks:
- grafana
- timescaledb
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=timescaledb=postgresql://k6:k6@timescaledb:5432/k6
volumes:
- ./samples:/scripts