-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathdocker-compose.yml
41 lines (37 loc) · 1.11 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
version: "3"
services:
postgres:
image: cyberw/locust-timescale:6
networks:
- timenet
expose:
- 5432
ports:
# remove the 127.0.0.1 to expose postgres to other machines (including load gen workers outside this machine)
- 127.0.0.1:5432:5432
environment:
# change the password if you intend to expose postgres to other machines
- POSTGRES_PASSWORD=password
- TIMESCALEDB_TELEMETRY=off
volumes:
- postgres_data:/var/lib/postgresql/data
grafana:
image: cyberw/locust-grafana:3
environment:
# these settings are not particularly safe, dont go exposing Grafana externally without changing this.
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_SECURITY_ALLOW_EMBEDDING=true
- GF_LOG_LEVEL=warn # reduce log spamming. Remove this if you need to debug grafana.
ports:
- 127.0.0.1:3000:3000
networks:
- timenet
volumes:
- grafana_data:/var/lib/grafana
networks:
timenet: null
volumes:
postgres_data: null
grafana_data: null