forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nimbus-base.yml
102 lines (102 loc) · 2.62 KB
/
nimbus-base.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.4"
services:
beacon:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./nimbus
args:
- BUILD_TARGET=${NIM_SRC_BUILD_TARGET}
- DOCKER_TAG=${NIM_DOCKER_TAG}
- USER=${NIM_USER}
- UID=${LOCAL_UID}
- METRICS=${NIM_METRICS}
dockerfile: ${NIM_DOCKERFILE}
image: nimbus
volumes:
- nimbus-data:/var/lib/nimbus
ports:
- ${NIM_PORT}:${NIM_PORT}/tcp
- ${NIM_PORT}:${NIM_PORT}/udp
entrypoint:
- /usr/local/bin/nimbus_beacon_node
- --data-dir=/var/lib/nimbus
- --log-file=/var/lib/nimbus/beacon_node.log
- --non-interactive
- --tcp-port=${NIM_PORT}
- --udp-port=${NIM_PORT}
- --network=${NETWORK}
- --web3-url=${ETH1_NODE}
- --graffiti=${GRAFFITI}
- --log-level=${LOG_LEVEL}
validator-import:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
image: nimbus
build:
context: ./nimbus
args:
- BUILD_TARGET=${NIM_SRC_BUILD_TARGET}
- DOCKER_TAG=${NIM_DOCKER_TAG}
- USER=${NIM_USER}
- UID=${LOCAL_UID}
- METRICS=${NIM_METRICS}
dockerfile: ${NIM_DOCKERFILE}
volumes:
- nimbus-data:/var/lib/nimbus
- ${DEPCLI_LOCALDIR}/validator_keys:/var/lib/nimbus/validator_keys
entrypoint:
- /usr/local/bin/nimbus_beacon_node
- --data-dir=/var/lib/nimbus
- --log-file=/var/lib/nimbus/beacon_node.log
- --network=${NETWORK}
- deposits
- import
- /var/lib/nimbus/validator_keys
deposit-cli:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./eth2.0-deposit-cli
args:
- BUILD_TARGET=${DEPCLI_SRC_BUILD_TARGET}
- USER=${DEPCLI_USER}
- UID=${LOCAL_UID}
image: eth2.0-deposit-cli
volumes:
- ${DEPCLI_LOCALDIR}:/var/lib/depcli-data
entrypoint:
- python3
- /app/eth2deposit/deposit.py
- new-mnemonic
- --folder
- /var/lib/depcli-data
- --chain
- ${NETWORK}
deposit-cli-add-recover:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./eth2.0-deposit-cli
args:
- BUILD_TARGET=${DEPCLI_SRC_BUILD_TARGET}
- USER=${DEPCLI_USER}
- UID=${LOCAL_UID}
image: eth2.0-deposit-cli
volumes:
- ${DEPCLI_LOCALDIR}:/var/lib/depcli-data
entrypoint:
- python3
- /app/eth2deposit/deposit.py
- existing-mnemonic
- --folder
- /var/lib/depcli-data
- --chain
- ${NETWORK}
eth2:
image: tianon/true
restart: "no"
depends_on:
- beacon
volumes:
nimbus-data: