File size: 2,234 Bytes
d086025
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# 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:


### 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

- [Configure networking](../configuration/networking.md)
- [Set up monitoring](../operations/monitoring.md)
- [Configure backups](../operations/backup.md)