Docker
Alternative to using our simple tool tmn, people or companies with existing infrastructure might want to directly run our docker images for more flexibility.
Last updated
docker run -d --name masternode \
-e IDENTITY=$MASTERNODE_NAME \
-e PRIVATE_KEY=$MASTERNODE_PK \
-e BOOTNODES=$BOOTNODES \
-e NETSTATS_HOST=stats.viction.xyz \
-e NETSTATS_PORT=443 \
-e WS_SECRET=$STATS_WS_SECRET \
-p 30303:30303 \
-p 30303:30303/udp \
-v chaindata:/tomochain/data \
Viction/node:stableversion: "3.4"
services:
masternode:
image: tomochain/node:stable
environment:
IDENTITY: $MASTERNODE_NAME
PRIVATE_KEY: $MASTERNODE_PK
BOOTNODES: $BOOTNODES
NETSTATS_HOST: stats.viction.xyz
NETSTATS_PORT: 443
WS_SECRET: $STATS_WS_SECRET
ports:
- 30303:30303
- 30303:30303/udp
volumes:
- chaindata:/tomochain/data