forked from Bavax83/SafeStakeOperator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-operator.yml
223 lines (219 loc) · 5.28 KB
/
docker-compose-operator.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
version: '3'
services:
geth:
image: ethereum/client-go:v1.13.10
pull_policy: always
restart: unless-stopped
network_mode: "host"
volumes:
- jwt-data:/data/jwt
- geth-data:/data/geth
command: [
"--${GETH_NETWORK}",
"--syncmode=snap",
"--http",
"--http.addr=0.0.0.0",
"--http.vhosts=*",
"--http.port=8545",
"--authrpc.addr=0.0.0.0",
"--authrpc.vhosts=*",
"--authrpc.port=8551",
"--discovery.port=30303",
"--port=30303",
"--ws",
"--ws.addr=0.0.0.0",
"--ws.port=8546",
"--datadir=/data/geth",
"--pprof",
"--pprof.addr=0.0.0.0",
"--http.api=engine,eth,web3,net,debug",
"--http.corsdomain=*",
"--authrpc.jwtsecret=/data/jwt/jwtsecret"
]
expose:
- "8545"
- "8546"
- "8551"
- "30303"
lighthouse:
network_mode: "host"
image: sigp/lighthouse:v4.5.0
pull_policy: always
restart: unless-stopped
volumes:
- jwt-data:/data/jwt
- lighthouse-data:/data/lighthouse
command:
[
"lighthouse",
"bn",
"--network=${LIGHTHOUSE_NETWORK}",
"--datadir=/data/lighthouse",
"--execution-jwt=/data/jwt/jwtsecret",
"--http",
"--listen-address=0.0.0.0",
"--http-address=0.0.0.0",
"--http-port=5052",
"--staking",
"--http-allow-sync-stalled",
"--execution-endpoint=http://127.0.0.1:8551",
"--metrics",
"--metrics-address=0.0.0.0",
"--subscribe-all-subnets",
"--import-all-attestations",
"--validator-monitor-auto",
"--checkpoint-sync-url=https://checkpoint-sync.holesky.ethpandaops.io",
]
expose:
- "5052"
- "9000"
- "5054"
operator:
network_mode: "host"
volumes:
- operator-data:/root/.lighthouse
image: parastate/dvf-operator:${IMAGE_TAG}
pull_policy: always
restart: unless-stopped
command:
- /bin/sh
- -c
- |
node_ip=$$(curl -s ifconfig.me)
dvf validator_client --builder-proposals --debug-level=info --network=${OPERATOR_NETWORK} --beacon-nodes=${BEACON_NODE_ENDPOINT} --api=${API_SERVER} --ws-url=${WS_URL} --ip=$$node_ip --id=${OPERATOR_ID} --registry-contract=${REGISTRY_CONTRACT_ADDRESS} --network-contract=${NETWORK_CONTRACT_ADDRESS} --suggested-fee-recipient=${FEE_RECEIPIENT} --base-port=26000 --builder-registration-timestamp-override=1703126082 2>&1
expose:
- "26000"
- "26001"
- "26002"
- "26003"
- "26004"
- "26005"
deploy:
resources:
limits:
memory: 5G
dvf_key_tool:
network_mode: "host"
volumes:
- operator-data:/root/.lighthouse
image: parastate/dvf-operator:${IMAGE_TAG}
pull_policy: always
command:
- /bin/sh
- -c
- |
dvf_key_tool ${OPERATOR_NETWORK}
deploy:
resources:
limits:
memory: 5G
nethermind:
image: nethermind/nethermind
pull_policy: always
restart: unless-stopped
network_mode: "host"
volumes:
- jwt-data:/data/jwt
- nethermind-data:/data/nethermind
command: [
"--config=${NETHERMIND_NETWORK}",
"--JsonRpc.Enabled=true",
"--JsonRpc.EngineHost=0.0.0.0",
"--JsonRpc.EnginePort=8551",
"--JsonRpc.WebSocketsPort=8546",
"--JsonRpc.JwtSecretFile=/data/jwt/jwtsecret",
"--datadir=/data/nethermind",
]
expose:
- "8551"
- "8546"
- "30303"
besu:
image: hyperledger/besu
pull_policy: always
restart: unless-stopped
network_mode: "host"
user: "0"
volumes:
- jwt-data:/data/jwt
- besu-data:/data/besu
command: [
"--network=${BESU_NETWORK}",
"--rpc-http-enabled=true",
"--engine-rpc-port=8551",
"--rpc-ws-enabled",
"--rpc-ws-host=0.0.0.0",
"--rpc-ws-port=8546",
"--engine-jwt-secret=/data/jwt/jwtsecret",
"--data-storage-format=BONSAI",
"--data-path=/data/besu",
]
expose:
- "8551"
- "8546"
- "30303"
erigon:
image: thorax/erigon:v2.56.2
pull_policy: always
restart: unless-stopped
network_mode: "host"
user: "0"
volumes:
- jwt-data:/data/jwt
- erigon-data:/data/erigon
command: [
"--chain=${ERIGON_NETWORK}",
"--authrpc.port=8551",
"--ws",
"--authrpc.jwtsecret=/data/jwt/jwtsecret",
"--datadir=/data/erigon",
"--prune=htc",
"--prune.r.before=4367322"
]
expose:
- "8551"
- "8545"
- "30303"
volumes:
geth-data:
driver: local
driver_opts:
o: bind
type: none
device: /data/geth
lighthouse-data:
driver: local
driver_opts:
o: bind
type: none
device: /data/lighthouse
jwt-data:
driver: local
driver_opts:
o: bind
type: none
device: /data/jwt
operator-data:
driver: local
driver_opts:
o: bind
type: none
device: /data/operator
nethermind-data:
driver: local
driver_opts:
o: bind
type: none
device: /data/nethermind
besu-data:
driver: local
driver_opts:
o: bind
type: none
device: /data/besu
erigon-data:
driver: local
driver_opts:
o: bind
type: none
device: /data/erigon