-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.13 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
version: "3.8"
services:
# ── Rust Backend ─────────────────────────────────────────
backend:
build:
context: .
dockerfile: packages/core/Dockerfile
ports:
- "4000:4000"
environment:
- RUST_LOG=info
- STELLAR_NETWORK=testnet
- HORIZON_URL=https://horizon-testnet.stellar.org
- CORS_ORIGIN=http://localhost:3000
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:4000/health",
]
interval: 30s
timeout: 10s
start_period: 10s
retries: 3
# ── Next.js Frontend ─────────────────────────────────────
frontend:
build:
context: .
dockerfile: packages/ui/Dockerfile
ports:
- "3000:3000"
environment:
- API_URL=http://backend:4000
depends_on:
backend:
condition: service_healthy
restart: unless-stopped