To achieve that, you just need to run our tomochain/node
docker image.
This image runs the TomoChain go client with some automation added on top.
Environment | Tag |
Testnet |
|
Mainnet |
|
Variable | Required | Default | Example | Description |
| False | Random name |
| The name of your asternode |
| False | Random password |
| The password used by the the client to localy encrypt its account |
| False | Random account |
| The private key of the account who will identify the node and receive txs fees |
| True | None |
| The comma separated list of bootnodes. Find them here |
| False | 3 |
| The level of logging (default one should be enough) |
| False | 89 |
| The network id of the join your node is joining. Find them here |
| False | None |
| The password to send data to the stats website |
| False | netstats-server |
| The stats website to report to, regarding to your environment |
| False | 3000 |
| The port used by the stats website (usually 443) |
| False | None |
| Enable reporting transactions via RPC/WS |
Exposed | Protocol | Description |
| tcp | TomoChain client p2p port |
| udp | TomoChain client p2p port |
| tcp | Blockchain RPC |
| tcp | Blockchain WS |
Path | Content |
| Chaindata |
| Accounts |
docker run
docker run -d --name masternode \-e IDENTITY=$MASTERNODE_NAME \-e PRIVATE_KEY=$MASTERNODE_PK \-e BOOTNODES=$BOOTNODES \-e NETSTATS_HOST=stats.tomochain.com \-e NETSTATS_PORT=443 \-e WS_SECRET=$STATS_WS_SECRET \-p 30303:30303 \-p 30303:30303/udp \-v chaindata:/tomochain/data \tomochain/node:stable
docker-compose.yml
version: "3.4"services:masternode:image: tomochain/node:stableenvironment:IDENTITY: $MASTERNODE_NAMEPRIVATE_KEY: $MASTERNODE_PKBOOTNODES: $BOOTNODESNETSTATS_HOST: stats.tomochain.comNETSTATS_PORT: 443WS_SECRET: $STATS_WS_SECRETports:- 30303:30303- 30303:30303/udpvolumes:- chaindata:/tomochain/data