Skip to content

Commit

Permalink
add a docker-compose file to run rundler locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Aug 29, 2024
1 parent 376d552 commit 93e8b9f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
9 changes: 9 additions & 0 deletions etc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Miscellaneous

This directory contains miscellaneous files, such as example docker file.

The files in this directory may undergo a lot of changes while reth is unstable, so do not expect them to necessarily be up to date.

### Overview

- [local](./local/): An example docker compose file to run rundler locally.
44 changes: 44 additions & 0 deletions etc/local/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: "3.8"

services:
geth:
image: ethereum/client-go:release-1.14
ports: [ '8545:8545' ]
command: --verbosity 1
--http.vhosts '*,localhost,host.docker.internal'
--http
--http.api eth,net,web3,debug
--http.corsdomain '*'
--http.addr "0.0.0.0"
--networkid 1337
--dev
--dev.period 0
--allow-insecure-unlock
--rpc.allow-unprotected-txs
--rpc.txfeecap 0
--dev.gaslimit 20000000

rundler-local:
build:
context: ../../
dockerfile: Dockerfile
command: node
depends_on:
- geth
ports:
# RPC port
- "3000:3000"
# Metrics port
- "8080:8080"
environment:
- RUST_LOG=debug
- NETWORK=dev
- NODE_HTTP=http://geth:8545
- MIN_UNSTAKE_DELAY=2
- PRIORITY_FEE_MODE_KIND=base_fee_percent
- PRIORITY_FEE_MODE_VALUE=0
- DISABLE_ENTRY_POINT_V0_6=true
- DISABLE_ENTRY_POINT_V0_7=false
- NODE_HTTP=http://geth:8545
- RPC_API=eth,debug
- BUILDER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000002

0 comments on commit 93e8b9f

Please sign in to comment.