Skip to content

Multiple Machines Deployment

To deploy a subnet with multiple machines, you need to follow the first two steps of Deploy With Wizard UI, pull and run the start.sh script, access the Deployment Wizard in your browser, and follow these steps:

  1. Select “Custom Subnet” and click the button: Custom Subnet

  2. Configure the subnet options as per your requirements and fill in the details: Configureuration

  3. Click the Submit button. You should see a success message: success message

  4. Return to the Deployment Wizard page ,continue with Deployment Wizard step 2,click the Start button. click_start

  5. Copy the generated files subnetX.env, docker-compose.yml, and genesis.json to the other machines (ensure you modify the paths as necessary). You need to copy and move the following files: files_to_copy

  6. Edit the generated/docker-compose.yml file, removing the subnet’s network configuration (except for the subnet configuration on machine1, which is the machine where you ran start.sh). delete_docker_net

  7. On machineX, place the subnetX.env, docker-compose.yml, and genesis.json files in the same directory. Then, use the following commands to start the corresponding subnet:

    export HOSTPWD=$(pwd)
    docker compose --profile machineX pull;  
    docker compose --profile machineX up -d;
    
    multi_machine_deploy
  8. Back in the Deployment Wizard, you can monitor the number of peers in the Status column on the left, or use the script generated/scripts/check-peer.sh to confirm if the multi-machine deployment was successful:

Status