mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
creating docker-compose file for 2.b - Create a Docker Compose definition that runs a local devnet with the newly built image.
This commit is contained in:
parent
b11eee1d98
commit
6d80046949
1 changed files with 22 additions and 0 deletions
22
docker-compose.yaml
Normal file
22
docker-compose.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
geth:
|
||||||
|
container_name: geth-devnet-go-ethereum
|
||||||
|
image: ivaylorashkov/go-ethereum:latest
|
||||||
|
networks:
|
||||||
|
- devnet
|
||||||
|
ports:
|
||||||
|
- "8545:8545" # Map host port 8545 to container port 8545
|
||||||
|
- "8546:8546" # Map host port 8546 to container port 8546
|
||||||
|
- "30303:30303" # Map host port 30303 to container port 30303
|
||||||
|
- "30303:30303/udp" # Map UDP port 30303 to the container
|
||||||
|
volumes:
|
||||||
|
- eth_data:/root/.ethereum # Mount a Docker volume for persistent Ethereum data
|
||||||
|
|
||||||
|
networks:
|
||||||
|
devnet:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
eth_data: # Define the volume here
|
||||||
Loading…
Reference in a new issue