forked from AbdulmalikAlayande/sorokeep
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.devnet.yaml
More file actions
96 lines (91 loc) · 3.37 KB
/
Copy pathdocker-compose.devnet.yaml
File metadata and controls
96 lines (91 loc) · 3.37 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# docker-compose.devnet.yaml
# ─────────────────────────────────────────────────────────────────────────────
# Devnet sandbox overlay for sorokeep.
#
# Usage:
# docker compose -f docker-compose.yaml -f docker-compose.devnet.yaml up
#
# This override:
# • Pins the Quickstart image to a known-stable devnet tag
# • Unlocks the Soroban RPC admin and fee-bump endpoints
# • Adds a friendbot service so you can fund test accounts
# • Configures the sorokeep daemon to point at the local devnet RPC
# • Enables verbose daemon logging for local development
# ─────────────────────────────────────────────────────────────────────────────
services:
# ── Stellar Quickstart (local devnet sandbox) ──────────────────────────────
stellar:
image: stellar/quickstart:testing
container_name: stellar-devnet
command:
- "--local"
- "--enable-soroban-rpc"
- "--limits"
- "unlimited"
ports:
- "8000:8000" # Horizon + Soroban RPC gateway
- "8001:8001" # Admin / fee-bump endpoint
- "11625:11625" # Stellar Core peer port (optional, useful for debugging)
environment:
# Allow unauthenticated admin calls on the devnet only
- ADMIN_PORT=6060
volumes:
- stellar-devnet-data:/opt/stellar
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8000/"]
interval: 10s
timeout: 5s
retries: 18
start_period: 45s
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- sorokeep-network
# ── Sorokeep daemon (devnet mode) ──────────────────────────────────────────
sorokeep:
container_name: sorokeep-devnet
build:
context: .
dockerfile: Dockerfile
depends_on:
stellar:
condition: service_healthy
environment:
- SOROKEEP_NETWORK=standalone
- SOROKEEP_RPC_URL=http://stellar:8000/soroban/rpc
- SOROKEEP_POLLING_INTERVAL=30000
# Verbose logging for local dev
- LOG_LEVEL=debug
- NODE_ENV=development
command:
- "daemon"
- "--network"
- "standalone"
- "--rpc-url"
- "http://stellar:8000/soroban/rpc"
- "--interval"
- "30000"
volumes:
- sorokeep-devnet-data:/home/sorokeep/.sorokeep
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "3"
networks:
- sorokeep-network
# ── Named volumes (devnet-scoped, separate from production) ───────────────────
volumes:
stellar-devnet-data:
driver: local
sorokeep-devnet-data:
driver: local
# ── Network ────────────────────────────────────────────────────────────────────
networks:
sorokeep-network:
driver: bridge