2022-03-02 13:44:13 +01:00
# Geth node
## Requirements for Ethereum network
* memory: 32Gb
* disk: 1Tb SSD (if you periodically prune state)
## Installation
2022-03-03 07:57:30 +01:00
Set the domain name to be used in the `.env` file. You can also set a list of allowed IP addresses there and addresses to treat as local. Rename `example.env` to `.env` :
2022-03-02 13:44:13 +01:00
```
mv example.env .env
```
Start node:
```bash
docker-compose up -d geth
```
## Upgrade
```bash
docker-compose pull
docker-compose up -d geth
```
2022-03-03 07:22:15 +01:00
## Pruning
Use it if the size is approaching 800 GB. At least 120 GB must be free for successful pruning.
2022-03-02 13:44:13 +01:00
```bash
docker-compose down
docker-compose up geth-pruning
docker-compose down
docker-compose up -d geth
```