-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
73 lines (66 loc) · 1.58 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
68
69
70
71
72
73
version: "3.7"
volumes:
db_volume:
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
environment:
- OTLP_EXPORTER_AGENT_HOSTNAME=otel-collector
depends_on:
db:
condition: service_healthy
metrics_generator:
build:
context: ./metrics_generator
dockerfile: Dockerfile
ports:
- "21122:21122"
environment:
- FLASK_APP=server.py
db:
image: postgres:14-alpine
volumes:
- ./db/init_default.sql:/docker-entrypoint-initdb.d/init_default.sql
- db_volume:/var/lib/postgresql/data
ports:
- "5432:5432"
env_file:
- .env
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "db", "-U", "glitch" ]
timeout: 40s
interval: 2s
retries: 20
otel-collector:
image: otel/opentelemetry-collector:0.25.0
ports:
- "6831:6831"
- "14268:14268"
- "4317:4317"
volumes:
- ./config/otel-collector.yaml:/config/otel-collector.yaml
command:
- --config=/config/otel-collector.yaml
tempo:
image: grafana/tempo:0.7.0
command: ["-config.file=/etc/tempo.yaml"]
ports:
- "3100:3100"
- "55680:55680"
volumes:
- ./config/tempo.yaml:/etc/tempo.yaml
- ./example-data/tempo:/tmp/tempo
grafana:
image: grafana/grafana:7.5.4
volumes:
- ./config/datasources:/etc/grafana/provisioning/datasources
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"