-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.67 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
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.9"
services:
db-org: &db_org
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: postgrespassword
restart: always
ports:
- "127.0.0.1:${PORT_DB_ORG}:5432"
volumes:
- pg_data_org:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 3s
retries: 5
db-profile:
<<: *db_org
ports:
- "127.0.0.1:${PORT_DB_PROFILE}:5432"
volumes:
- pg_data_profile:/var/lib/postgresql/data
db-license:
<<: *db_org
ports:
- "127.0.0.1:${PORT_DB_LICENSE}:5432"
volumes:
- pg_data_license:/var/lib/postgresql/data
# All traces, metrics, and logs will first go into the
# OpenTelemetry Collector, and from there they can be
# sent to wherever.
collector:
image: otel/opentelemetry-collector
# Expose OTel Collector's OTLP ports so Hasura can send it telemetry
expose:
- 4317 # grpc
- 4318 # http
ports:
- "127.0.0.1:4317:4317"
- "127.0.0.1:4318:4318"
volumes:
- ./otel-config.yml:/etc/otel-config.yaml
command: "--config=/etc/otel-config.yaml"
depends_on:
- jaeger
jaeger:
image: jaegertracing/all-in-one:latest
# Enable OTLP export of traces from OTel Collector to Jaeger
environment:
COLLECTOR_OTLP_ENABLED: true
# Expose Jaeger's OTLP ports so the OTel Collector can write to Jaeger
expose:
- 4317 # otlp grpc
- 4318 # otlp http
- 14269 # jaeger collector, admin port
- 5778 # serves sampling strategies
ports:
- "127.0.0.1:16686:16686" # jaeger ui
volumes:
pg_data_org:
pg_data_profile:
pg_data_license: