mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
add docker-compose for local devnet
This commit is contained in:
parent
576caa3ee2
commit
103d4503a1
2 changed files with 38 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -47,3 +47,5 @@ tests/spec-tests/
|
||||||
.terraform
|
.terraform
|
||||||
terraform.tfstate*
|
terraform.tfstate*
|
||||||
.terraform.tfstate.lock.info
|
.terraform.tfstate.lock.info
|
||||||
|
|
||||||
|
.env
|
||||||
|
|
|
||||||
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
name: limechain-devops-task
|
||||||
|
|
||||||
|
services:
|
||||||
|
go-ethereum:
|
||||||
|
container_name: "go-ethereum"
|
||||||
|
image: "861276097334.dkr.ecr.eu-central-1.amazonaws.com/limechain-devops-task/go-ethereum:1"
|
||||||
|
### keep if testing build locally
|
||||||
|
# build:
|
||||||
|
# dockerfile: Dockerfile
|
||||||
|
# context: .
|
||||||
|
### override default 'geth' entrypoint
|
||||||
|
entrypoint: "geth --dev --http --http.api eth,web3,net --http.corsdomain 'https://remix.ethereum.org'"
|
||||||
|
volumes:
|
||||||
|
- "go-ethereum_data:/go-ethereum"
|
||||||
|
### keep to pass any env vars if necessary
|
||||||
|
# env_file:
|
||||||
|
# - ".env"
|
||||||
|
ports:
|
||||||
|
- "8545:8545"
|
||||||
|
- "8546:8546"
|
||||||
|
- "30303:30303"
|
||||||
|
- "30303:30303/udp"
|
||||||
|
networks:
|
||||||
|
go-ethereum:
|
||||||
|
ipv4_address: 172.25.0.2
|
||||||
|
restart: "no"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
go-ethereum:
|
||||||
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 172.25.0.0/24
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
go-ethereum_data:
|
||||||
Loading…
Reference in a new issue