Add documentation for private geth network with Docker

This document provides a minimal example of running a single-node private geth network using Docker, including a sample docker-compose.yml configuration.
Added `PRIVATE_NET_DOCKER.md` document with a minimal `docker-compose` example for running a geth private network.
This commit is contained in:
patridunk 2025-12-15 18:29:15 +01:00 committed by GitHub
parent 6978ab48aa
commit a0cccb0f5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,29 @@
# Running a simple private geth network with Docker
This document shows a minimal example of running a single-node private
geth network using Docker. It is intended for local experiments and
should not be used as-is in production.
## Example `docker-compose.yml`
```yaml
version: "3.8"
services:
geth:
image: ethereum/client-go:stable
container_name: geth-private
command:
[
"--http",
"--http.addr=0.0.0.0",
"--http.api=eth,net,web3,personal",
"--dev",
"--dev.period=0",
"--verbosity=3"
]
ports:
- "8545:8545"
- "30303:30303"
volumes:
- ./data:/root/.ethereum