forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
geth.yml
53 lines (53 loc) · 1.07 KB
/
geth.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.4"
services:
eth1:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./geth
dockerfile: ${GETH_DOCKERFILE}
args:
- BUILD_TARGET=${GETH_SRC_BUILD_TARGET}
- USER=${GETH_USER}
- UID=${LOCAL_UID}
- DOCKER_TAG=${GETH_DOCKER_TAG}
image: geth
volumes:
- geth-eth1-data:/var/lib/goethereum
ports:
- ${ETH1_PORT}:${ETH1_PORT}/tcp
- ${ETH1_PORT}:${ETH1_PORT}/udp
expose:
- ${ETH1_RPC_PORT}/tcp
- ${ETH1_WS_PORT}/tcp
entrypoint:
- geth
- --nousb
- --http
- --http.addr
- 0.0.0.0
- --http.vhosts=eth1,localhost
- --http.api
- eth,net
- --datadir
- /var/lib/goethereum
- --port
- ${ETH1_PORT}
- --http.port
- ${ETH1_RPC_PORT}
- --ws
- --ws.addr
- 0.0.0.0
- --ws.port
- ${ETH1_WS_PORT}
- --ws.api
- eth,net
command: ${GETH1_NETWORK}
beacon:
depends_on:
- eth1
eth2:
depends_on:
- eth1
volumes:
geth-eth1-data: