forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lh-base.yml
195 lines (195 loc) · 4.64 KB
/
lh-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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
version: "3.4"
services:
beacon:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./lighthouse
dockerfile: ${LH_DOCKERFILE}
args:
- BUILD_TARGET=${LH_SRC_BUILD_TARGET}
- USER=${LH_USER}
- UID=${LOCAL_UID}
- DOCKER_TAG=${LH_DOCKER_TAG}
image: lighthouse
volumes:
- lhbeacon-data:/var/lib/lighthouse
ports:
- ${LH_PORT}:${LH_PORT}/tcp
- ${LH_PORT}:${LH_PORT}/udp
expose:
- 5052/tcp
entrypoint:
- lighthouse
- bn
- --datadir
- /var/lib/lighthouse
- --http
- --http-address
- 0.0.0.0
- --network
- ${NETWORK}
- --port
- ${LH_PORT}
- --eth1-endpoints
- ${ETH1_NODE}
- --debug-level=${LOG_LEVEL}
validator:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./lighthouse
dockerfile: ${LH_DOCKERFILE}
args:
- BUILD_TARGET=${LH_SRC_BUILD_TARGET}
- USER=${LH_USER}
- UID=${LOCAL_UID}
- DOCKER_TAG=${LH_DOCKER_TAG}
image: lighthouse
volumes:
- lhvalidator-data:/var/lib/lighthouse
entrypoint:
- lighthouse
- validator
- --datadir
- /var/lib/lighthouse
- --beacon-node
- http://beacon:5052
- --graffiti
- ${GRAFFITI}
- --network
- ${NETWORK}
- --debug-level=${LOG_LEVEL}
depends_on:
- beacon
validator-import:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
image: lighthouse
build:
context: ./lighthouse
dockerfile: ${LH_DOCKERFILE}
args:
- BUILD_TARGET=${LH_SRC_BUILD_TARGET}
- USER=${LH_USER}
- UID=${LOCAL_UID}
- DOCKER_TAG=${LH_DOCKER_TAG}
volumes:
- lhvalidator-data:/var/lib/lighthouse
- ${DEPCLI_LOCALDIR}/validator_keys:/var/lib/lighthouse/validator_keys
entrypoint:
- query-lh-validator-passwords.sh
- lighthouse
- account
- validator
- import
- --datadir
- /var/lib/lighthouse
- --directory
- /var/lib/lighthouse/validator_keys
- --network
- ${NETWORK}
- --debug-level=${LOG_LEVEL}
validator-voluntary-exit:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
image: lighthouse
build:
context: ./lighthouse
dockerfile: ${LH_DOCKERFILE}
args:
- BUILD_TARGET=${LH_SRC_BUILD_TARGET}
- USER=${LH_USER}
- UID=${LOCAL_UID}
- DOCKER_TAG=${LH_DOCKER_TAG}
volumes:
- lhvalidator-data:/var/lib/lighthouse
- ${DEPCLI_LOCALDIR}/validator_keys:/var/lib/lighthouse/validator_keys
entrypoint:
- lighthouse
- account
- validator
- exit
- --beacon-node
- http://beacon:5052
- --datadir
- /var/lib/lighthouse
- --network
- ${NETWORK}
- --debug-level=${LOG_LEVEL}
- --keystore
depends_on:
- beacon
validator-account:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
image: lighthouse
build:
context: ./lighthouse
dockerfile: ${LH_DOCKERFILE}
args:
- BUILD_TARGET=${LH_SRC_BUILD_TARGET}
- USER=${LH_USER}
- UID=${LOCAL_UID}
- DOCKER_TAG=${LH_DOCKER_TAG}
volumes:
- lhvalidator-data:/var/lib/lighthouse
- ${DEPCLI_LOCALDIR}:/interchange
entrypoint:
- lighthouse
- account
- validator
- --datadir
- /var/lib/lighthouse
- --network
- ${NETWORK}
- --debug-level=${LOG_LEVEL}
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
- validator
volumes:
lhbeacon-data:
lhvalidator-data: