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/genesis/devgen.car:/devgen.car
|
||||
- $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
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "grep 'started ChainNotify channel' /var/log/lotus.log"]
|
||||
# interval: 10s
|
||||
# timeout: 10s
|
||||
# retries: 5
|
||||
# start_period: 30s
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "grep 'started ChainNotify channel' /var/log/lotus.log"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
# depends_on:
|
||||
# - fixturenet-lotus-bootnode
|
||||
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.json:/root/.genesis-sectors/pre-seal-t01000.json
|
||||
# - lotus-local-net-shared:/root/.lotus-local-net
|
||||
- lotus-shared:/root/.lotus-shared
|
||||
# healthcheck:
|
||||
# test: ["CMD", "nc", "-v", "localhost", "8545"]
|
||||
# interval: 30s
|
||||
# timeout: 10s
|
||||
# retries: 10
|
||||
# start_period: 3s
|
||||
# depends_on:
|
||||
# - fixturenet-lotus-1
|
||||
depends_on:
|
||||
lotus-miner:
|
||||
condition: service_healthy
|
||||
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
||||
# entrypoint: ["lotus", "--version"]
|
||||
ports:
|
||||
@ -66,14 +69,16 @@ services:
|
||||
# - ./myscripts/pre-seal-t01000.key:/root/.genesis-sectors/pre-seal-t01000.key
|
||||
# - ./myscripts/pre-seal-t01000.json:/root/.genesis-sectors/pre-seal-t01000.json
|
||||
# - lotus-local-net-shared:/root/.lotus-local-net
|
||||
- lotus-shared:/root/.lotus-shared
|
||||
# healthcheck:
|
||||
# test: ["CMD", "nc", "-v", "localhost", "8545"]
|
||||
# interval: 30s
|
||||
# timeout: 10s
|
||||
# retries: 10
|
||||
# start_period: 3s
|
||||
# depends_on:
|
||||
# - fixturenet-lotus-1
|
||||
depends_on:
|
||||
lotus-miner:
|
||||
condition: service_healthy
|
||||
entrypoint: ["sh", "/docker-entrypoint-scripts.d/setup-node.sh"]
|
||||
# entrypoint: ["lotus", "--version"]
|
||||
ports:
|
||||
@ -81,3 +86,6 @@ services:
|
||||
- "2345"
|
||||
- "3456"
|
||||
- "1777"
|
||||
|
||||
volumes:
|
||||
lotus-shared:
|
@ -2,4 +2,8 @@
|
||||
|
||||
lotus --version
|
||||
#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