- Clone this repository.
- Run
docker-compose up -d
from the console. - After the run do
docker-compose down -v; git clean -xfd; git reset --hard
to stop and remove the containers, volumes and clean generated files.
compose-network
folder has the static files needed for starting Local network.network-logs
folder will be created at runtime and will have all the log files generated after starting local node.
The following environment variables can be changed in the .env
file for various memory limits
- Platform
- PLATFORM_JAVA_HEAP_MIN
- PLATFORM_JAVA_HEAP_MAX
- Consensus node
- NETWORK_NODE_MEM_LIMIT
- Mirror node
- MIRROR_GRPC_MEM_LIMIT - memory limit for mirror node gRPC
- MIRROR_IMPORTER_MEM_LIMIT - memory limit for mirror node importer
- MIRROR_REST_MEM_LIMIT - memory limit for mirror node rest api
- MIRROR_WEB3_MEM_LIMIT - memory limit for mirror node web3
- To change
application.properties
,api-permission.properties
orbootstrap.properties
properties, update theAPPLICATION_CONFIG_PATH
to the location of updated config folder in.env
file
IMPORTANT : Ensure to do docker-compose down -v; git clean -xfd; git reset --hard
and then docker-compose up -d
for the new changes to take any effect.
- Ensure to use Docker Compose version 1.29.2 on macOS, due to known bug in Docker Compose V2.
- Ensure the
gRPC FUSE for file sharing
andUse Docker Compose V2
settings are disabled in the docker settings.
✘ The keys under network-node
(hedera.key
, hedera.crt
and the keys
folder) are only intended to be used for testing with this docker based local network. These keys should not be used with any other networks.