This repository hosts custom Dockerfiles for building java-tron images that are more container-friendly and works out of the box.
This repository has been forked from SunStake/docker-java-tron, in order update and extend a bit.
Blockchain data is stored in ./data/node
.
Configuration can be done via environment variables. The entry script modifies the config file on the fly before the node is run.
Most of configuration variables are defined in docker-compose file, secrets are defined in .env
file, which is created automatically if it doesn't exist by launching start.sh
.
By default node dumps logs into logs/tron.log
which we can access using docker exec -it tron-node tail -f logs/tron.log
The Tron network to connect to.
Options:
mainnet
(default)nile
The port on which the node listens on for P2P networking. Defaults to 18888
.
The port on which the node serves full node HTTP API. Defaults to 8090
.
The port on which the node serves solidity node HTTP API. Defaults to 8091
.
TVM time ratio to avoid timeout. See this issue. Defaults to 5.0
.
NOTE
This option is only supported on version
4.1.1
or higher.
Whether to enable witness mode (block producer), useful for running a local test network.
Options:
true
false
(default)
Whether to enable the event plugin.
Options:
true
false
(default)
Storage backend to use with the event plugin.
Options:
mongodb
kafka
MongoDB server address for the event plugin. Mandatory if EVENT_PLUGIN_ENABLED
is true
and EVENT_PLUGIN_BACKEND
is mongodb
.
Kafka server address for the event plugin. Mandatory if EVENT_PLUGIN_ENABLED
is true
and EVENT_PLUGIN_BACKEND
is kafka
.
Whether to enable the block
trigger for the event plugin.
Options:
true
false
(default)
Starting block for the event plugin filter
Options:
Integer
0
(Default)
Whether to enable the transaction
trigger for the event plugin.
Options:
true
false
(default)
Whether to enable the contractevent
trigger for the event plugin.
Options:
true
false
(default)
Whether to enable the contractlog
trigger for the event plugin.
Options:
true
false
(default)
Whether to enable the solidity
trigger for the event plugin.
Options:
true
false
(default)
Whether to enable the solidityevent
trigger for the event plugin.
Options:
true
false
(default)
Whether to enable the soliditylog
trigger for the event plugin.
Options:
true
false
(default)
Contract address filter for the event plugin. Multiple addresses are separated by space. By default no filter is applied.
Contract topic filter for the event plugin. Multiple topics are separated by space. By default no filter is applied.