2023-05-17 21:11:56 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
|
|
|
|
lotus-miner:
|
|
|
|
hostname: lotus-miner
|
|
|
|
env_file:
|
|
|
|
- ../config/fixturenet-lotus/lotus-env.env
|
|
|
|
image: cerc/lotus:local
|
|
|
|
volumes:
|
|
|
|
- ../config/fixturenet-lotus/setup-miner.sh:/docker-entrypoint-scripts.d/setup-miner.sh
|
2023-08-09 11:54:47 +00:00
|
|
|
- ../config/fixturenet-lotus/fund-account.sh:/fund-account.sh
|
|
|
|
- lotus_miner_params:/var/tmp/filecoin-proof-parameters
|
2023-05-17 21:11:56 +00:00
|
|
|
- lotus-shared:/root/.lotus-shared
|
|
|
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-miner.sh"]
|
|
|
|
ports:
|
|
|
|
- "1234"
|
|
|
|
- "2345"
|
|
|
|
- "3456"
|
|
|
|
- "1777"
|
|
|
|
|
|
|
|
lotus-node-1:
|
|
|
|
hostname: lotus-node-1
|
|
|
|
env_file:
|
|
|
|
- ../config/fixturenet-lotus/lotus-env.env
|
2023-08-09 11:54:47 +00:00
|
|
|
environment:
|
|
|
|
# Use 0.0.0.0 so that calls can be made from outside the container
|
|
|
|
- LOTUS_API_LISTENADDRESS=/ip4/0.0.0.0/tcp/1234/http
|
2023-05-17 21:11:56 +00:00
|
|
|
image: cerc/lotus:local
|
|
|
|
volumes:
|
|
|
|
- ../config/fixturenet-lotus/setup-node.sh:/docker-entrypoint-scripts.d/setup-node.sh
|
2023-08-09 11:54:47 +00:00
|
|
|
- lotus_node_1_params:/var/tmp/filecoin-proof-parameters
|
2023-05-17 21:11:56 +00:00
|
|
|
- lotus-shared:/root/.lotus-shared
|
2023-08-10 08:27:07 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "1234"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 10
|
|
|
|
start_period: 3s
|
2023-05-17 21:11:56 +00:00
|
|
|
depends_on:
|
2023-08-09 11:54:47 +00:00
|
|
|
- lotus-miner
|
2023-05-17 21:11:56 +00:00
|
|
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
|
|
|
ports:
|
|
|
|
- "1234"
|
|
|
|
- "2345"
|
|
|
|
- "3456"
|
|
|
|
- "1777"
|
|
|
|
|
|
|
|
lotus-node-2:
|
|
|
|
hostname: lotus-node-2
|
|
|
|
env_file:
|
|
|
|
- ../config/fixturenet-lotus/lotus-env.env
|
2023-08-09 11:54:47 +00:00
|
|
|
environment:
|
|
|
|
# Use 0.0.0.0 so that calls can be made from outside the container
|
|
|
|
- LOTUS_API_LISTENADDRESS=/ip4/0.0.0.0/tcp/1234/http
|
2023-05-17 21:11:56 +00:00
|
|
|
image: cerc/lotus:local
|
|
|
|
volumes:
|
|
|
|
- ../config/fixturenet-lotus/setup-node.sh:/docker-entrypoint-scripts.d/setup-node.sh
|
2023-08-09 11:54:47 +00:00
|
|
|
- lotus_node_2_params:/var/tmp/filecoin-proof-parameters
|
2023-05-17 21:11:56 +00:00
|
|
|
- lotus-shared:/root/.lotus-shared
|
2023-08-10 08:27:07 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "1234"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 10
|
|
|
|
start_period: 3s
|
2023-05-17 21:11:56 +00:00
|
|
|
depends_on:
|
2023-08-09 11:54:47 +00:00
|
|
|
- lotus-miner
|
2023-05-17 21:11:56 +00:00
|
|
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
|
|
|
ports:
|
|
|
|
- "1234"
|
|
|
|
- "2345"
|
|
|
|
- "3456"
|
|
|
|
- "1777"
|
|
|
|
|
|
|
|
volumes:
|
2023-08-09 11:54:47 +00:00
|
|
|
lotus_miner_params:
|
|
|
|
lotus_node_1_params:
|
|
|
|
lotus_node_2_params:
|
|
|
|
lotus-shared:
|