跳到主要内容

🚄 Setup and run a Collator

Installation > Configuration > Running > Sync > Session keys > Bond

⚙️ Running

  • start your docker node

    #Non production sample
    docker run \
    -it \
    -p 9933:9933 \
    -p 30333:30333 \
    -p 30334:30334 \
    -p 9615:9615 \
    -p 9516:9516 \
    -v host_path:/container_path \
    --name your_container_name \
    mantanetwork/manta:latest \
    --base-path /container_path/data \
    --keystore-path /container_path/keystore \
    --name your_collator_name \
    --rpc-cors all \
    --collator \
    --rpc-methods=unsafe \
    --unsafe-rpc-external \

    #Production sample
    docker run \
    -it \
    -p 9933:9933 \
    -p 30333:30333 \
    -p 30334:30334 \
    -v host_path:/container_path \
    --restart=unless-stopped \
    --name your_container_name \
    mantanetwork/manta:latest \
    --base-path /container_path/data \
    --keystore-path /container_path/keystore \
    --name your_collator_name \
    --rpc-cors all \
    --collator \
    --rpc-methods=safe \
    -- \
    --telemetry-url 'wss://api.telemetry.manta.systems/submit/ 0'

    Examples of these name and paths:

    host_path:/container_path => ~/my-manta-db:/manta

    your_collator_name => Community-Collator-1

    You may want to consider the following:

    • if using http (not configured for ssl with certbot) for metrics, add ports -p 9615:9615 -p 9616:9616
    • add auto restart to ensure start on system boot or reboot --restart=unless-stopped
    • remove unsafe-rpb-external when you are ready for production
    • change rpc-methods to safe when ready for production --rpc-methods=safe
    • additional Pokadot configuration. at the end of your command stack, add -- to designate Pokadot configuration, then add telemetry-url -- --telemetry-url 'wss://api.telemetry.manta.systems/submit/ 0'

    Ensure you can see a line of log like this:

    👤 Role: AUTHORITY