-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.38 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
59
60
61
services:
server:
build:
context: .
dockerfile: server/Dockerfile
container_name: agora_server
environment:
PORT: 3001
DATABASE_URL: postgres://user:password@postgres:5432/agora
REDIS_URL: redis://redis:6379
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
ports:
- "3001:3001"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
jaeger:
condition: service_started
postgres:
image: postgres:latest
container_name: agora_postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: agora
ports:
- "5432:5432"
volumes:
- agora_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d agora"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7
container_name: agora_redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
jaeger:
image: jaegertracing/all-in-one:latest
container_name: agora_jaeger
ports:
- "16686:16686" # Jaeger UI
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
environment:
COLLECTOR_OTLP_ENABLED: "true"
volumes:
agora_postgres_data: