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:
Ivaylo Rashkov 2025-02-17 19:05:49 +02:00
parent b11eee1d98
commit 6d80046949

22
docker-compose.yaml Normal file
View 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