-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.75 KB
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
# External dependencies: PostgreSQL, Prometheus (metrics scraping), Jaeger (OpenTelemetry traces).
# Start: docker compose up -d
#
# Connection hints (apps on host machine):
# PostgreSQL: jdbc:postgresql://localhost:5432/orchestration
# Prometheus UI: http://localhost:9099 (host 9099 → container 9090; avoids clash with worker gRPC on host 9090)
# Jaeger UI: http://localhost:16686
# OTLP (gRPC): localhost:4317 — set in bootRun via OTEL_EXPORTER_OTLP_ENDPOINT (override with -Potel.otlp.endpoint=...)
#
# Prometheus scrapes host.docker.internal:8080/actuator/prometheus — run the orchestrator on port 8080,
# or edit docker/prometheus/prometheus.yml.
services:
postgres:
image: postgres:16-alpine
container_name: orchestration-postgres
environment:
POSTGRES_USER: orchestrator
POSTGRES_PASSWORD: orchestrator
POSTGRES_DB: orchestration
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U orchestrator -d orchestration"]
interval: 5s
timeout: 5s
retries: 5
prometheus:
image: prom/prometheus:v2.55.1
container_name: orchestration-prometheus
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --web.enable-lifecycle
ports:
- "9099:9090"
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
extra_hosts:
- "host.docker.internal:host-gateway"
jaeger:
image: jaegertracing/all-in-one:1.57
container_name: orchestration-jaeger
environment:
COLLECTOR_OTLP_ENABLED: "true"
ports:
- "16686:16686"
- "4317:4317"
- "4318:4318"
volumes:
postgres_data: