forked from Fracverse/zaps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.34 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.34 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
version: '3.8'
services:
# --- PostgreSQL Database ---
db:
image: postgres:15-alpine
container_name: zaps-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: zaps_dev
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d zaps_dev"]
interval: 5s
timeout: 5s
retries: 5
# --- Redis Cache ---
redis:
image: redis:7-alpine
container_name: zaps-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
# --- Stellar / Soroban RPC Node ---
soroban-rpc:
image: stellar/quickstart:latest
container_name: zaps-soroban-rpc
restart: unless-stopped
# Running local standalone sandbox environment
command:
- --local
- --enable-soroban-rpc
ports:
- "8000:8000"
volumes:
- soroban_data:/opt/stellar
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 10s
timeout: 5s
retries: 6
volumes:
postgres_data:
driver: local
redis_data:
driver: local
soroban_data:
driver: local