version: "3"
services:
node:
image: phalanetwork/khala-node-with-launcher:latest
container_name: node
hostname: node
restart: always
ports:
- "9944:9944"
- "9945:9945"
- "30333:30333"
- "30334:30334"
environment:
- NODE_NAME=NODE
- NODE_ROLE=ARCHIVE
- PARACHAIN_EXTRA_ARGS=--max-runtime-instances 32 --runtime-cache-size 8 --rpc-max-response-size 64
- RELAYCHAIN_EXTRA_ARGS=--max-runtime-instances 32 --runtime-cache-size 8 --rpc-max-response-size 64 --blocks-pruning archive-canonical --state-pruning 50400
volumes:
- /var/khala/node-data:/root/data
khala-headers-cache:
image: phalanetwork/headers-cache:latest
container_name: khala-headers-cache
network_mode: host
restart: always
environment:
- ROCKET_PORT=22111
- ROCKET_ADDRESS=0.0.0.0
- RUST_LOG=info
command:
- serve
- --grab-headers
- --node-uri=ws://{node-ip}:9945
- --para-node-uri=ws://{node-ip}:9944
- --interval=60
volumes:
- ./khala-headers-cache-public:/opt/headers-cache/data
It can be connected to both Prb3 or pherry, and then connected to pRuntime. But remember: