add shared volume
This commit is contained in:
parent
0abc0b5046
commit
a6a1399138
@ -10,13 +10,14 @@ services:
|
|||||||
- ../config/fixturenet-lotus/setup-miner.sh:/docker-entrypoint-scripts.d/setup-miner.sh
|
- ../config/fixturenet-lotus/setup-miner.sh:/docker-entrypoint-scripts.d/setup-miner.sh
|
||||||
- ../config/fixturenet-lotus/genesis/devgen.car:/devgen.car
|
- ../config/fixturenet-lotus/genesis/devgen.car:/devgen.car
|
||||||
- $HOME/stack-orchestrator/app/data/config/fixturenet-lotus/genesis/.genesis-sectors:/root/.genesis-sectors
|
- $HOME/stack-orchestrator/app/data/config/fixturenet-lotus/genesis/.genesis-sectors:/root/.genesis-sectors
|
||||||
|
- lotus-shared:/root/.lotus-shared
|
||||||
# - lotus-local-net-shared:/root/.lotus-local-net
|
# - lotus-local-net-shared:/root/.lotus-local-net
|
||||||
# healthcheck:
|
healthcheck:
|
||||||
# test: ["CMD-SHELL", "grep 'started ChainNotify channel' /var/log/lotus.log"]
|
test: ["CMD-SHELL", "grep 'started ChainNotify channel' /var/log/lotus.log"]
|
||||||
# interval: 10s
|
interval: 10s
|
||||||
# timeout: 10s
|
timeout: 10s
|
||||||
# retries: 5
|
retries: 5
|
||||||
# start_period: 30s
|
start_period: 30s
|
||||||
# depends_on:
|
# depends_on:
|
||||||
# - fixturenet-lotus-bootnode
|
# - fixturenet-lotus-bootnode
|
||||||
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-miner.sh"]
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-miner.sh"]
|
||||||
@ -38,14 +39,16 @@ services:
|
|||||||
# - ./myscripts/pre-seal-t01000.key:/root/.genesis-sectors/pre-seal-t01000.key
|
# - ./myscripts/pre-seal-t01000.key:/root/.genesis-sectors/pre-seal-t01000.key
|
||||||
# - ./myscripts/pre-seal-t01000.json:/root/.genesis-sectors/pre-seal-t01000.json
|
# - ./myscripts/pre-seal-t01000.json:/root/.genesis-sectors/pre-seal-t01000.json
|
||||||
# - lotus-local-net-shared:/root/.lotus-local-net
|
# - lotus-local-net-shared:/root/.lotus-local-net
|
||||||
|
- lotus-shared:/root/.lotus-shared
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ["CMD", "nc", "-v", "localhost", "8545"]
|
# test: ["CMD", "nc", "-v", "localhost", "8545"]
|
||||||
# interval: 30s
|
# interval: 30s
|
||||||
# timeout: 10s
|
# timeout: 10s
|
||||||
# retries: 10
|
# retries: 10
|
||||||
# start_period: 3s
|
# start_period: 3s
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - fixturenet-lotus-1
|
lotus-miner:
|
||||||
|
condition: service_healthy
|
||||||
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
||||||
# entrypoint: ["lotus", "--version"]
|
# entrypoint: ["lotus", "--version"]
|
||||||
ports:
|
ports:
|
||||||
@ -66,14 +69,16 @@ services:
|
|||||||
# - ./myscripts/pre-seal-t01000.key:/root/.genesis-sectors/pre-seal-t01000.key
|
# - ./myscripts/pre-seal-t01000.key:/root/.genesis-sectors/pre-seal-t01000.key
|
||||||
# - ./myscripts/pre-seal-t01000.json:/root/.genesis-sectors/pre-seal-t01000.json
|
# - ./myscripts/pre-seal-t01000.json:/root/.genesis-sectors/pre-seal-t01000.json
|
||||||
# - lotus-local-net-shared:/root/.lotus-local-net
|
# - lotus-local-net-shared:/root/.lotus-local-net
|
||||||
|
- lotus-shared:/root/.lotus-shared
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ["CMD", "nc", "-v", "localhost", "8545"]
|
# test: ["CMD", "nc", "-v", "localhost", "8545"]
|
||||||
# interval: 30s
|
# interval: 30s
|
||||||
# timeout: 10s
|
# timeout: 10s
|
||||||
# retries: 10
|
# retries: 10
|
||||||
# start_period: 3s
|
# start_period: 3s
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - fixturenet-lotus-1
|
lotus-miner:
|
||||||
|
condition: service_healthy
|
||||||
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
||||||
# entrypoint: ["lotus", "--version"]
|
# entrypoint: ["lotus", "--version"]
|
||||||
ports:
|
ports:
|
||||||
@ -81,3 +86,6 @@ services:
|
|||||||
- "2345"
|
- "2345"
|
||||||
- "3456"
|
- "3456"
|
||||||
- "1777"
|
- "1777"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
lotus-shared:
|
@ -2,4 +2,8 @@
|
|||||||
|
|
||||||
lotus --version
|
lotus --version
|
||||||
#lotus daemon --genesis=/devgen.car --profile=bootstrapper --bootstrap=false > /var/log/lotus.log 2>&1
|
#lotus daemon --genesis=/devgen.car --profile=bootstrapper --bootstrap=false > /var/log/lotus.log 2>&1
|
||||||
lotus daemon --genesis=/devgen.car --bootstrap=false
|
#lotus daemon --genesis=/devgen.car --bootstrap=false
|
||||||
|
|
||||||
|
nohup lotus daemon --genesis=/devgen.car --profile=bootstrapper --bootstrap=false > /var/log/lotus.log 2>&1 &
|
||||||
|
|
||||||
|
# initialization check here
|
||||||
|
Loading…
Reference in New Issue
Block a user