forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprysm-base.yml
166 lines (165 loc) · 3.87 KB
/
prysm-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
version: "3.4"
x-build: &prysm-build
context: ./prysm
dockerfile: ${PRYSM_DOCKERFILE}
args:
- BUILD_TARGET=${PRYSM_SRC_BUILD_TARGET}
- USER=${PRYSM_USER}
- UID=${LOCAL_UID}
- DOCKER_TAG=${PRYSM_DOCKER_TAG}
services:
beacon:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
target: beacon
<<: *prysm-build
image: prysm-beacon
volumes:
- prysmbeacon-data:/var/lib/prysm
ports:
- ${PRYSM_PORT}:${PRYSM_PORT}/tcp
- ${PRYSM_UDP_PORT}:${PRYSM_UDP_PORT}/udp
expose:
- 4000
entrypoint:
- beacon-chain
- --datadir
- /var/lib/prysm/
- --rpc-host
- 0.0.0.0
- --http-web3provider
- ${ETH1_NODE}
- --p2p-tcp-port
- ${PRYSM_PORT}
- --p2p-udp-port
- ${PRYSM_UDP_PORT}
- --verbosity
- ${LOG_LEVEL}
- --${NETWORK}
- --accept-terms-of-use
validator:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
target: validator
<<: *prysm-build
image: prysm-validator
volumes:
- prysmvalidator-data:/var/lib/prysm
entrypoint:
- validator
- --datadir
- /var/lib/prysm
- --wallet-dir
- /var/lib/prysm/
- --beacon-rpc-provider
- beacon:4000
- --graffiti
- ${GRAFFITI}
- --verbosity
- ${LOG_LEVEL}
- --${NETWORK}
- --accept-terms-of-use
# If you chose not to store the wallet password during import, comment out the two following lines
- --wallet-password-file
- /var/lib/prysm/password.txt
depends_on:
- beacon
validator-import:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
image: prysm-validator
build:
target: validator
<<: *prysm-build
volumes:
- prysmvalidator-data:/var/lib/prysm
- ${DEPCLI_LOCALDIR}/validator_keys:/var/lib/prysm/validator_keys
entrypoint: create-prysm-validator-wallet.sh
command:
- validator
- --verbosity
- ${LOG_LEVEL}
- --datadir
- /var/lib/prysm
- accounts
- import
- --wallet-dir
- /var/lib/prysm/
- --keys-dir
- /var/lib/prysm/validator_keys
- --${NETWORK}
validator-voluntary-exit:
restart: "no"
user: ${LOCAL_UID}:${LOCAL_UID}
image: prysm-validator
build:
target: validator
<<: *prysm-build
volumes:
- prysmvalidator-data:/var/lib/prysm
entrypoint:
- validator
- --verbosity
- ${LOG_LEVEL}
- --datadir
- /var/lib/prysm
- accounts
- voluntary-exit
- --wallet-dir
- /var/lib/prysm/
- --beacon-rpc-provider
- beacon:4000
- --wallet-password-file
- /var/lib/prysm/password.txt
- --${NETWORK}
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:
prysmbeacon-data:
prysmvalidator-data: