Running local Mosaic Chain Stack
With this Docker Compose stack, you can start a Mosaic Solochain on your local computer.
Prerequisites
Starting the Stack
bash
git clone https://github.com/Mosaic-Chain/devdocs
cd devdocs/development/
./init.sh
docker compose up -d --waitTIP
You can start only the chain by running docker compose up -d --wait blockchain. In this case you don't even need to run init.sh and you don't even need nebula or openssl installed.
URLs
| Website | Description | Link |
|---|---|---|
| Blockchain RPC | Can be used to communicate with the chain. | ws://localhost:1400 |
| Explorer | Frontend designed to access the Mosaic Chain. | http://localhost:1413 |
| Metrics | Session metrics from the chain. | http://localhost:1418 |
| Telemetry | Collects hardware data from validators. | http://localhost:1420 |
| PgAdmin | Database manager tool. | http://localhost:1415 |
| Portainer | Container management tool. | http://localhost:1416 |
| WebMail | Fake email tool. | http://localhost:1417 |
Ports
| Container | External | Internal |
|---|---|---|
| Blockchain | 1400 | 9945 |
| Blockchain | 1401 | 9946 |
| Blockchain | 1402 | 9947 |
| Blockchain | 1403 | 9948 |
| Blockchain | 1404 | 9949 |
| Blockchain | 1405 | 9950 |
| Indexer | 1406 | 8080 |
| Indexer Database | 1407 | 5432 |
| VPN Controller Backend | 1408 | 3001 |
| VPN Controller Backend | 1409 | 3002 |
| VPN Controller Backend | 1410 | 3003 |
| VPN Controller Backend Database | 1411 | 5432 |
| Gateway Backend | 1412 | 8080 |
| Explorer Pro | 1413 | 80 |
| VPN Controller Frontend | 1414 | 80 |
| PgAdmin | 1415 | 80 |
| Portainer | 1416 | 9000 |
| WebMail | 1417 | 1080 |
| Metrics | 1418 | 3000 |
| Metrics Database | 1419 | 5432 |