Skip to content

Commit

Permalink
Update readme to explain how to run multiple nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Feb 22, 2023
1 parent 1fcb51a commit b658532
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,16 @@ To clean the data
make clean
```

To start multiple nodes, you can leverage: `docker-compose`
To start mutiple node, you need to update some environment variables:
```bash
# Start the first node
iex -S mix

# Start second node
ARCHETHIC_CRYPTO_SEED=node2 ARCHETHIC_P2P_PORT=3003 ARCHETHIC_HTTP_PORT=4001 ARCHETHIC_HTTPS_PORT=5001 iex -S mix

# To start other node, increment the environment variables
```

### Using docker

Expand Down

0 comments on commit b658532

Please sign in to comment.