-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.73 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:
# Local Stellar + Soroban RPC node (testnet-equivalent)
stellar-testnet:
image: stellar/quickstart:latest
command: ["--local"]
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "sh", "-c", "wget -qO- http://localhost:8000/ >/dev/null 2>&1"]
interval: 5s
timeout: 3s
retries: 30
networks:
- starforge-network
# Dedicated Soroban RPC endpoint (useful when separating horizon from rpc traffic)
soroban-rpc:
image: stellar/quickstart:latest
command: ["--local"]
ports:
- "8001:8000"
depends_on:
stellar-testnet:
condition: service_healthy
networks:
- starforge-network
# StarForge CLI dev container — mounts the project root for live `cargo run`
# Usage: docker-compose run --rm starforge starforge <command>
# Example: docker-compose run --rm starforge starforge deploy --wasm ./token.wasm --network docker-testnet
# For live code editing use: docker-compose run --rm starforge cargo run -- <command>
starforge:
build:
context: .
dockerfile: Dockerfile.dev
cache_from:
- type=local,src=/tmp/starforge-cache
volumes:
- .:/workspace
- cargo-cache:/usr/local/cargo/registry
- cargo-git-cache:/usr/local/cargo/git
- target-cache:/workspace/target
environment:
- STELLAR_RPC_URL=http://soroban-rpc:8000
- STELLAR_NETWORK=local
- CARGO_TARGET_DIR=/workspace/target
depends_on:
stellar-testnet:
condition: service_healthy
working_dir: /workspace
networks:
- starforge-network
networks:
starforge-network:
driver: bridge
volumes:
cargo-cache:
driver: local
cargo-git-cache:
driver: local
target-cache:
driver: local