| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Docker-compose based configuration to easily run locally deployed dev/test network. Latest config files support node v5.. For older node versions use the 1. tags of this repository.
This repository provide two setups described below:
The nodes use the mean15-generic miner (fastest generic miner). As the beneficiary key-pair is publicly available, this setup should not be connected to public networks.
All local network nodes are configured with the same beneficiary account (for more details on beneficiary see configuration documentation):
All APIs (external, internal and state channels websocket) are exposed to the docker host, the URL pattern is as follows:
The multinode configuration (default) uses a proxy server to allow CORS and URL routing.
Node ports:
For example to access node2 peer public key, assuming docker host address is localhost:
curl http://localhost:3002/v2/peers/pubkeyTo start the network:
docker-compose up -dTo destroy the network:
docker-compose downTo cleanup the associated docker volumes, -v option could be used:
docker-compose down -vMore details can be found in docker-compose documentation.
To use a Single Node Configuration just append -f singlenode.yml to the docker-compose command. Example:
docker-compose -f singlenode.yml upDocker compose uses the aeternity/aeternity:latest image by default, it will be pulled from docker hub if it's not found locally.
To change what node version is used set IMAGE_TAG environment variable, e.g.:
IMAGE_TAG=v4.0.0 docker-compose up -dThis configuration is known to work with node versions >= 2.0.0
By default the localnet has set default mine rate of 1 block per 15 seconds. It can be changed by setting AETERNITY_MINE_RATE environment variable. The variable is in milliseconds, so to set 1 block per 10 seconds use:
AETERNITY_MINE_RATE=10000 docker-compose up| Back | FazBrowse Home | New Git URL |