|
Download tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/docker.md from Lego-X/ProgramGen: direct link, hf CLI and curl.
- Browser
- Download file 2.23 kB
-
https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/docker.md
- Command line
-
hf download hf://datasets/Lego-X/ProgramGen/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/docker.md
-
curl -L -o docker.md https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/docker.md
2.23 kB
Docker Deployment Guide
Deploy Guts nodes using Docker and Docker Compose.
Prerequisites
- Docker 24.0+ installed
- Docker Compose v2.20+ (for multi-node setups)
- 4GB RAM minimum (8GB recommended)
- 50GB disk space minimum
Single Node Deployment
Pull the Image
Generate Node Identity
Start the Node
Verify Deployment
Docker Compose Deployment
Single Node with Monitoring
Create docker-compose.yml:
Create prometheus.yml:
Start the stack:
Multi-Node Devnet (4 Validators)
For a local development network with Simplex BFT consensus:
Access points:
- Validator 1: http://localhost:8091
- Validator 2: http://localhost:8092
- Validator 3: http://localhost:8093
- Validator 4: http://localhost:8094
Environment Variables
| Variable | Default | Description |
|---|---|---|
GUTS_API_ADDR |
127.0.0.1:8080 |
HTTP API listen address |
GUTS_P2P_ADDR |
0.0.0.0:9000 |
P2P listen address |
GUTS_METRICS_ADDR |
0.0.0.0:9090 |
Prometheus metrics address |
GUTS_DATA_DIR |
./data |
Data directory |
GUTS_LOG_LEVEL |
info |
Log level (trace/debug/info/warn/error) |
GUTS_LOG_FORMAT |
json |
Log format (json/pretty) |
GUTS_PRIVATE_KEY |
- | Node private key (hex) |
GUTS_CONSENSUS_ENABLED |
false |
Enable consensus engine |
GUTS_CONSENSUS_USE_SIMPLEX_BFT |
false |
Use Simplex BFT |
GUTS_CONSENSUS_BLOCK_TIME_MS |
2000 |
Block time in milliseconds |
Resource Limits
For production, set resource limits:
Persistent Storage
Using Named Volumes (Recommended)
Using Host Mounts
Networking
Bridge Network (Default)
Host Network (Performance)
Security Hardening
Run as Non-Root
The image runs as the guts user (UID 1000) by default: