@@ -42,7 +42,7 @@ services:
42
42
volumes :
43
43
- ./data/lotus:/var/lib/lotus:rw
44
44
- ./data/genesis:/var/lib/genesis:rw
45
- # - ${FIL_PROOFS_PARAMETER_CACHE}:/var/tmp/filecoin-proof-parameters:rw
45
+
46
46
47
47
lotus-miner :
48
48
container_name : lotus-miner
@@ -80,6 +80,42 @@ services:
80
80
- ./data/genesis:/var/lib/genesis:ro
81
81
# - ${FIL_PROOFS_PARAMETER_CACHE}:/var/tmp/filecoin-proof-parameters:rw
82
82
83
+ lotus-miner2 :
84
+ container_name : lotus-miner2
85
+ image : ${IMAGE}
86
+ entrypoint : ['/app/entrypoint-lotus-miner2.sh']
87
+ profiles : ["replication"]
88
+ healthcheck :
89
+ test : >-
90
+ curl -s http://lotus-miner2:2345 || exit 1
91
+ interval : 20s
92
+ retries : 5
93
+ start_period : 6000s
94
+ timeout : 10s
95
+ depends_on :
96
+ lotus-miner :
97
+ condition : service_healthy
98
+ ports :
99
+ - " 2346:2345"
100
+ environment :
101
+ - LOTUS_PATH=/var/lib/lotus
102
+ - LOTUS_MINER_PATH=/var/lib/lotus-miner
103
+ - LOTUS_API_LISTENADDRESS=/dns/lotus-miner2/tcp/2345/http
104
+ - LOTUS_API_REMOTELISTENADDRESS=lotus-miner2:2345
105
+ - LOTUS_SEALING_BATCHPRECOMMITS=false
106
+ - LOTUS_SEALING_AGGREGATECOMMITS=false
107
+ - LOTUS_SUBSYSTEMS_ENABLEMARKETS=false
108
+ - LOTUS_SEALING_WAITDEALSDELAY=20s
109
+ - GENESIS_PATH=/var/lib/genesis
110
+ - SECTOR_SIZE=${SECTOR_SIZE}
111
+ # - LOTUS_SKIP_GENESIS_CHECK=_yes_
112
+ restart : unless-stopped
113
+ logging : *default-logging
114
+ volumes :
115
+ - ./data/lotus-miner2:/var/lib/lotus-miner:rw
116
+ - ./data/lotus:/var/lib/lotus:ro
117
+ - ./data/genesis:/var/lib/genesis:ro
118
+
83
119
boost :
84
120
container_name : boost
85
121
image : ${IMAGE}
@@ -177,4 +213,103 @@ services:
177
213
labels :
178
214
- " com.docker-tc.enabled=1"
179
215
- " com.docker-tc.delay=10ms"
180
-
216
+
217
+ boost2 :
218
+ container_name : boost2
219
+ image : ${IMAGE}
220
+ profiles : ["replication"]
221
+ entrypoint : ['/app/entrypoint-boost.sh']
222
+ healthcheck :
223
+ test : >-
224
+ curl -s http://boost2:8080 || exit 1
225
+ interval : 20s
226
+ retries : 5
227
+ start_period : 6000s
228
+ timeout : 10s
229
+ depends_on :
230
+ lotus :
231
+ condition : service_healthy
232
+ lotus-miner2 :
233
+ condition : service_healthy
234
+ ports :
235
+ - " 8081:8080"
236
+ - " 1289:1288" # For the /metrics endpoint
237
+ - " 50001:50000" # Exposed libp2p port
238
+ environment :
239
+ - LOTUS_API_LISTENADDRESS=/dns/boost2/tcp/1288/http
240
+ - LOTUS_PATH=/var/lib/lotus
241
+ - LOTUS_MINER_PATH=/var/lib/lotus-miner
242
+ - LOTUS_TRACING_ENABLED=true
243
+ - LOTUS_TRACING_SERVICENAME=boostd
244
+ - LOTUS_TRACING_ENDPOINT=http://tempo:14268/api/traces
245
+ restart : unless-stopped
246
+ logging : *default-logging
247
+ volumes :
248
+ - ./data/boost2:/var/lib/boost:rw
249
+ - ./data/lotus:/var/lib/lotus:ro
250
+ - ./data/lotus-miner2:/var/lib/lotus-miner:ro
251
+ - ./data/sample:/app/public:rw
252
+
253
+ booster-http2 :
254
+ container_name : booster-http2
255
+ image : ${IMAGE}
256
+ profiles : ["replication"]
257
+ entrypoint : ['/app/entrypoint-booster-http.sh']
258
+ healthcheck :
259
+ test : >-
260
+ curl http://127.0.0.1:7778/ || echo down
261
+ interval : 20s
262
+ retries : 5
263
+ start_period : 6000s
264
+ timeout : 10s
265
+ depends_on :
266
+ boost2 :
267
+ condition : service_healthy
268
+ ports :
269
+ - " 7778:7777"
270
+ environment :
271
+ - BOOST_PATH=/var/lib/boost
272
+ - LOTUS_PATH=/var/lib/lotus
273
+ - LOTUS_MINER_PATH=/var/lib/lotus-miner
274
+ restart : unless-stopped
275
+ logging : *default-logging
276
+ volumes :
277
+ - ./data/boost2:/var/lib/boost:ro
278
+ - ./data/lotus:/var/lib/lotus:ro
279
+ - ./data/lotus-miner2:/var/lib/lotus-miner:ro
280
+ labels :
281
+ - " com.docker-tc.enabled=1"
282
+ - " com.docker-tc.delay=10ms"
283
+
284
+ booster-bitswap2 :
285
+ container_name : booster-bitswap2
286
+ image : ${IMAGE}
287
+ profiles : ["replication"]
288
+ entrypoint : ['/app/entrypoint-booster-bitswap.sh']
289
+ healthcheck :
290
+ test : >-
291
+ printf "" > /dev/tcp/127.0.0.1/8889 || echo down
292
+ interval : 20s
293
+ retries : 5
294
+ start_period : 6000s
295
+ timeout : 10s
296
+ depends_on :
297
+ boost2 :
298
+ condition : service_healthy
299
+ ports :
300
+ - " 8889:8888"
301
+ environment :
302
+ - BOOSTER_BITSWAP_REPO=/var/lib/booster-bitswap
303
+ - BOOST_PATH=/var/lib/boost
304
+ - LOTUS_PATH=/var/lib/lotus
305
+ - LOTUS_MINER_PATH=/var/lib/lotus-miner
306
+ restart : unless-stopped
307
+ logging : *default-logging
308
+ volumes :
309
+ - ./data/booster-bitswap2:/var/lib/booster-bitswap:rw
310
+ - ./data/boost2:/var/lib/boost:ro
311
+ - ./data/lotus:/var/lib/lotus:ro
312
+ - ./data/lotus-miner2:/var/lib/lotus-miner:ro
313
+ labels :
314
+ - " com.docker-tc.enabled=1"
315
+ - " com.docker-tc.delay=10ms"
0 commit comments