-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 817 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 817 Bytes
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
services:
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "4317:4317"
backend:
build:
context: . # ← project root
dockerfile: backend/Dockerfile
container_name: fastapi_backend
ports:
- "8000:8000"
env_file:
- .env
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4317
- OTEL_SERVICE_NAME=hr-pulse-backend
depends_on:
- jaeger
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- INTERNAL_API_URL=http://backend:8000 # ← add this
container_name: nextjs_frontend
ports:
- "3000:3000"
env_file:
- .env
environment:
- INTERNAL_API_URL=http://backend:8000
depends_on:
- backend