-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
58 lines (53 loc) · 1.45 KB
/
docker-compose.yaml
File metadata and controls
58 lines (53 loc) · 1.45 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
57
58
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: stridetrack-backend
ports:
- "8000:8000"
env_file:
- ./backend/.env
environment:
# When running in Docker, reach OTel collector on host (optional: only used if backend/.env has OTEL_ENDPOINT set)
- OTEL_ENDPOINT=host.docker.internal:4317
volumes:
- ./backend:/app
- backend-venv:/app/.venv
extra_hosts:
- "host.docker.internal:host-gateway"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: stridetrack-frontend
ports:
- "5173:5173"
env_file:
- ./frontend/.env
environment:
# When running in Docker, Vite proxy uses this to reach Jaeger on the host
- OTEL_PROXY_TARGET=http://host.docker.internal:4318
volumes:
- ./frontend:/app
- frontend-node-modules:/app/node_modules
depends_on:
- backend
extra_hosts:
- "host.docker.internal:host-gateway"
jaeger:
image: jaegertracing/jaeger:2.15.1
command:
- "--set=receivers.otlp.protocols.grpc.endpoint=0.0.0.0:4317"
- "--set=receivers.otlp.protocols.http.endpoint=0.0.0.0:4318"
ports:
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "16686:16686" # Jaeger UI
volumes:
backend-venv:
frontend-node-modules:
networks:
default:
name: supabase_network_StrideTrack
external: true