forked from FinChippay/Finchippay-Solution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
64 lines (60 loc) · 1.7 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
64 lines (60 loc) · 1.7 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
62
63
64
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.prod
ports:
- "80:80"
environment:
- BACKEND_URL=http://backend:4000
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
restart: always
backend:
build:
context: ./backend
dockerfile: Dockerfile.prod
environment:
- PORT=4000
- NODE_ENV=production
- STELLAR_NETWORK=mainnet
- HORIZON_URL=https://horizon.stellar.org
- TURRETS_EVALUATION_INTERVAL_MS=60000
# Optional: set to enable distributed tracing via OTLP
# - OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318
# Optional: set to enable AI payment parsing via Anthropic
# - ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxx
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
restart: always
# ─── Jaeger all-in-one (production distributed tracing) ──────────────────────
jaeger:
image: jaegertracing/all-in-one:1.64
ports:
- "127.0.0.1:16686:16686"
- "127.0.0.1:4318:4318"
environment:
- COLLECTOR_OTLP_ENABLED=true
- SPAN_STORAGE_TYPE=badger
- BADGER_EPHEMERAL=false
- BADGER_DIRECTORY_VALUE=/badger/data
- BADGER_DIRECTORY_KEY=/badger/key
volumes:
- jaeger_data:/badger
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:16686"]
interval: 30s
timeout: 10s
retries: 3
restart: always
volumes:
jaeger_data: