mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
feat: add docker support
This commit is contained in:
parent
0f987772b7
commit
211f920876
1 changed files with 27 additions and 0 deletions
27
docker-compose.yaml
Normal file
27
docker-compose.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
node1:
|
||||
build: .
|
||||
container_name: geth-node1
|
||||
volumes:
|
||||
- ./docker:/app/docker
|
||||
entrypoint: ["/bin/sh"]
|
||||
command: ["/app/docker/node1.sh"]
|
||||
ports:
|
||||
- "8545:8545"
|
||||
- "30303:30303"
|
||||
environment:
|
||||
- NODE_NAME=node1
|
||||
|
||||
node2:
|
||||
build: .
|
||||
container_name: geth-node2
|
||||
volumes:
|
||||
- ./docker:/app/docker
|
||||
entrypoint: ["/bin/sh"]
|
||||
command: ["/app/docker/node2.sh"]
|
||||
ports:
|
||||
- "8546:8546"
|
||||
- "30304:30304"
|
||||
environment:
|
||||
- NODE_NAME=node2
|
||||
Loading…
Reference in a new issue