Persistant storage

This commit is contained in:
Dimitar Manov 2025-06-11 10:01:22 +03:00
parent ab6db4674a
commit dc1820d943
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
FROM dmanov/go-ethereum:dev-latest
COPY devnet /root/.ethereum
COPY devnet /root/dev-chain
ENTRYPOINT ["geth"]
CMD ["--dev", "--http", "--http.addr", "0.0.0.0", "--http.api", "eth,net,web3", "--allow-insecure-unlock"]
CMD ["--dev", "--datadir", "/root/dev-chain", "--http", "--http.addr", "0.0.0.0", "--http.api", "eth,net,web3", "--allow-insecure-unlock"]

View file

@ -5,12 +5,13 @@ services:
container_name: geth
image: dmanov/go-ethereum:dev-latest
volumes:
- ./devnet:/root/.ethereum
- ./devnet:/root/dev-chain
ports:
- "8545:8545"
- "30303:30303"
command: >
--dev
--datadir /root/dev-chain
--http
--http.addr 0.0.0.0
--http.corsdomain="*"