- Clone this repository.
- Run
docker-compose up -dfrom the console. - After the run do
docker-compose down -v; git clean -xfd; git reset --hardto stop and remove the containers, volumes and clean generated files.
compose-networkfolder has the static files needed for starting Local network.network-logsfolder 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.propertiesorbootstrap.propertiesproperties, update theAPPLICATION_CONFIG_PATHto the location of updated config folder in.envfile
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 sharingandUse Docker Compose V2settings 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.
