Conghao97's picture tcftrees's picture
ProgramGen release
d086025
|
Raw History Blame Contribute Delete
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:

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:

Read-Only Root Filesystem

Security Options

Backup and Restore

Backup

Restore

Upgrades

Rolling Upgrade

Rollback

Troubleshooting

Container Won't Start

High Memory Usage

Network Issues

Next Steps