diff --git a/docker/docker-compose-local-chain.yml b/docker/docker-compose-local-chain.yml index c983a9c49c..61f3169b89 100644 --- a/docker/docker-compose-local-chain.yml +++ b/docker/docker-compose-local-chain.yml @@ -3,6 +3,7 @@ services: cc_alice: profiles: - default + user: root container_name: cc-alice image: "centrifugeio/centrifuge-chain:${CC_DOCKER_TAG:-test-main-latest}" platform: "linux/x86_64" @@ -11,7 +12,7 @@ services: - "9946:9933" volumes: - type: bind - source: ./res/rococo-local.json + source: ../res/rococo-local.json target: /chainspec.json read_only: true command: > @@ -26,7 +27,7 @@ services: --rpc-cors all --rpc-methods=Unsafe --log="main,info,xcm=trace,xcm-executor=trace" - --database=auto + --database=rocksdb -- --wasm-execution=compiled --execution=wasm @@ -45,7 +46,7 @@ services: - "9946:9944" volumes: - type: bind - source: ./res/rococo-local.json + source: ../res/rococo-local.json target: /chainspec.json read_only: true command: > diff --git a/docker/docker-compose-local-relay.yml b/docker/docker-compose-local-relay.yml index 0516c2f798..953cefe143 100644 --- a/docker/docker-compose-local-relay.yml +++ b/docker/docker-compose-local-relay.yml @@ -11,7 +11,7 @@ services: - "9944:9933" volumes: - type: bind - source: ./res/rococo-local.json + source: ../res/rococo-local.json target: /chainspec.json read_only: true command: > @@ -37,7 +37,7 @@ services: - "9945:9933" volumes: - type: bind - source: ./res/rococo-local.json + source: ../res/rococo-local.json target: /chainspec.json read_only: true command: > diff --git a/scripts/init.sh b/scripts/init.sh index a342cd1805..646d16a456 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -21,22 +21,22 @@ install-toolchain) start-relay-chain) echo "Starting local relay chain with Alice and Bob..." - docker-compose -f ./docker-compose-local-relay.yml up --remove-orphans -d + docker-compose -f ./docker/docker-compose-local-relay.yml up --remove-orphans -d ;; stop-relay-chain) echo "Stopping relay chain..." - docker-compose -f ./docker-compose-local-relay.yml down + docker-compose -f ./docker/docker-compose-local-relay.yml down ;; start-parachain-docker) echo "Starting local parachain with Alice..." - docker-compose -f ./docker-compose-local-chain.yml --profile=$cc_docker_profile up -d + docker-compose -f ./docker/docker-compose-local-chain.yml --profile=$cc_docker_profile up -d ;; stop-parachain-docker) echo "Stopping local parachain with Alice..." - docker-compose -f ./docker-compose-local-chain.yml --profile=$cc_docker_profile down + docker-compose -f ./docker/docker-compose-local-chain.yml --profile=$cc_docker_profile down ;; start-parachain) @@ -64,7 +64,7 @@ start-parachain) --rpc-cors all \ --rpc-methods=Unsafe \ --log="main,info" \ - --database=auto + --database=rocksdb ;; onboard-parachain)