remove managed volume + mount datadir for geth data

This commit is contained in:
teddy931130 2025-01-15 22:22:59 +02:00
parent 8ecf57461a
commit a342d3cfaa
2 changed files with 4 additions and 6 deletions

1
.gitignore vendored
View file

@ -49,3 +49,4 @@ terraform.tfstate*
.terraform.tfstate.lock.info
.env
geth-data/

View file

@ -8,10 +8,10 @@ services:
# build:
# dockerfile: Dockerfile
# context: .
### override default 'geth' entrypoint
entrypoint: "geth --dev --http --http.api eth,web3,net --http.corsdomain 'https://remix.ethereum.org'"
### override default 'geth' entrypoint to use a local devnet
entrypoint: "geth --dev --datadir /root/.ethereum --http --http.api eth,web3,net --http.addr 0.0.0.0 --http.corsdomain 'https://remix.ethereum.org'"
volumes:
- "go-ethereum_data:/go-ethereum"
- "./geth-data:/root/.ethereum"
### keep to pass any env vars if necessary
# env_file:
# - ".env"
@ -31,6 +31,3 @@ networks:
ipam:
config:
- subnet: 172.25.0.0/24
volumes:
go-ethereum_data: