mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
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:
parent
6978ab48aa
commit
a0cccb0f5f
1 changed files with 29 additions and 0 deletions
29
docs/PRIVATE_NET_DOCKER.md
Normal file
29
docs/PRIVATE_NET_DOCKER.md
Normal 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
|
||||
Loading…
Reference in a new issue