mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
remove managed volume + mount datadir for geth data
This commit is contained in:
parent
8ecf57461a
commit
a342d3cfaa
2 changed files with 4 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -49,3 +49,4 @@ terraform.tfstate*
|
||||||
.terraform.tfstate.lock.info
|
.terraform.tfstate.lock.info
|
||||||
|
|
||||||
.env
|
.env
|
||||||
|
geth-data/
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ services:
|
||||||
# build:
|
# build:
|
||||||
# dockerfile: Dockerfile
|
# dockerfile: Dockerfile
|
||||||
# context: .
|
# context: .
|
||||||
### override default 'geth' entrypoint
|
### override default 'geth' entrypoint to use a local devnet
|
||||||
entrypoint: "geth --dev --http --http.api eth,web3,net --http.corsdomain 'https://remix.ethereum.org'"
|
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:
|
volumes:
|
||||||
- "go-ethereum_data:/go-ethereum"
|
- "./geth-data:/root/.ethereum"
|
||||||
### keep to pass any env vars if necessary
|
### keep to pass any env vars if necessary
|
||||||
# env_file:
|
# env_file:
|
||||||
# - ".env"
|
# - ".env"
|
||||||
|
|
@ -31,6 +31,3 @@ networks:
|
||||||
ipam:
|
ipam:
|
||||||
config:
|
config:
|
||||||
- subnet: 172.25.0.0/24
|
- subnet: 172.25.0.0/24
|
||||||
|
|
||||||
volumes:
|
|
||||||
go-ethereum_data:
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue