-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 1.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
79 lines (74 loc) · 1.69 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.8'
services:
soroban:
image: stellar/quickstart:latest
ports:
- "8000:8000"
- "11626:11626"
- "11625:11625"
environment:
- NETWORK=standalone
- HORIZON_PORT=8000
- CORE_PORT=11626
volumes:
- soroban_data:/var/lib/stellar
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 5s
timeout: 3s
retries: 10
start_period: 30s
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
mongodb:
image: mongo:7
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 3s
retries: 10
backend:
build:
context: .
dockerfile: backend/Dockerfile
ports:
- "3001:3001"
environment:
- SOROBAN_RPC_URL=http://soroban:8000/soroban/rpc
- HORIZON_API_URL=http://soroban:8000
- INVOICE_CONTRACT_ID=${INVOICE_CONTRACT_ID:-CONTRACT_ID_PLACEHOLDER}
- REDIS_URL=redis://redis:6379
depends_on:
soroban:
condition: service_healthy
redis:
condition: service_healthy
mongodb:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health/rpc"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
volumes:
- backend_data:/app/data
volumes:
soroban_data:
redis_data:
mongodb_data:
backend_data: