node-distro/deploy/docker-compose/README.md
Anatolios Laskaris 9b6fe501d8
chore: Reorganize directory structure and update README [fixes FLU-276] (#96)
* Update

* Typo

* Update

* Fixes

* Fix

* docs: Added CONTRIBUTING and LICENSE-related words to README

* docs: a few typos fixed

---------

Co-authored-by: Mikhail <mikhail.zotov@fluence.one>
2023-02-22 09:42:26 +02:00

1.4 KiB

Run rust-peer with docker-compose

This docker-compose file starts a local network of three rust-peers.

Installing docker and docker-compose

Follow official instruction for docker and docker-compose.

Running local rust-peer network

  1. Either git clone this repository locally and run cd deploy/docker-compose or download docker-compose.yml directly.

  2. Ensure you have the most up-to-date container images:

    docker-compose pull
    
  3. Run the network:

    docker-compose up -d
    

Accessing local rust-peer network

Using fluence-cli follow the example workflow appending --relay <peer-multiaddr> to run commands.

Local network multiaddresses:

container multiaddress
peer-1 /ip4/127.0.0.1/tcp/9991/ws/p2p/12D3KooWBM3SdXWqGaawQDGQ6JprtwswEg3FWGvGhmgmMez1vRbR
peer-2 /ip4/127.0.0.1/tcp/9992/ws/p2p/12D3KooWQdpukY3p2DhDfUfDgphAqsGu5ZUrmQ4mcHSGrRag6gQK
peer-3 /ip4/127.0.0.1/tcp/9993/ws/p2p/12D3KooWRT8V5awYdEZm6aAV9HWweCEbhWd7df4wehqHZXAB7yMZ