-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (63 loc) · 1.79 KB
/
docker-compose.yaml
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
64
65
66
67
version: '3'
services:
otel-collector:
container_name: otel-collector
image: marcussinkinson/otel:1.0
command: ["./wait-for-it.sh", "promscale:9202", "--strict", "--timeout=100", "--", "./collector", "--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- 4433:4433 # AWS firehose receiver for metrics
- 4318:4318 # OTLP HTTP receiver for traces
- 4317:4317 # OTLP receiver
depends_on:
- promscale
db:
container_name: timescaledb
image: timescale/timescaledb-ha:pg14-latest
restart: on-failure
ports:
- 127.0.0.1:5432:5432/tcp
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
TSTUNE_PROFILE: promscale
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- timescale_data:/home/postgres/pgdata/data
promscale:
container_name: promscale
image: timescale/promscale:latest
restart: on-failure
ports:
- 9201:9201/tcp
- 9202:9202/tcp
environment:
PROMSCALE_DB_CONNECT_RETRIES: 10
PROMSCALE_DB_URI: postgres://postgres:password@db:5432/postgres?sslmode=allow
depends_on:
db:
condition: service_healthy
grafana:
container_name: grafana
image: grafana/grafana
restart: unless-stopped
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
depends_on:
- promscale
volumes:
grafana_data:
timescale_data: