From 6d800469495a5bcd758f549c29e411e9ad97d58f Mon Sep 17 00:00:00 2001 From: Ivaylo Rashkov Date: Mon, 17 Feb 2025 19:05:49 +0200 Subject: [PATCH] creating docker-compose file for 2.b - Create a Docker Compose definition that runs a local devnet with the newly built image. --- docker-compose.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000000..f16dc9b155 --- /dev/null +++ b/docker-compose.yaml @@ -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 \ No newline at end of file