-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make the image modulable with docker-compose
- Loading branch information
1 parent
223c916
commit 09e2d33
Showing
5 changed files
with
74 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Private network image | ||
|
||
This image contain all the necessary tools to run: | ||
- a masternode | ||
- a bootnode | ||
- a stats page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Tags for the tomochain/node image | ||
# You'd normally only need stable | ||
TAG=stable | ||
# The name of this masternode | ||
IDENTITY= | ||
# The private key of the masternode account | ||
PRIVATE_KEY= | ||
# The bootnodes this node will connect to | ||
# Should be a comma separated list of value with no whitespaces | ||
BOOTNODES= | ||
# Your chain network id | ||
# Should match the one in your genesis | ||
NETWORK_ID= | ||
# Log level | ||
# 1 = FATAL, 2 = ERROR, 3 = INFO, 4 = DEBUG, 5 and upper = TRACE | ||
VERBOSITY=3 | ||
# Address of the stats page | ||
STATS_HOST=localhost | ||
# Port of the stats page | ||
STATS_PORT=443 | ||
# Secret of the stats page | ||
WS_SECRET= | ||
# Path or existing docker volume name where to store the chain data | ||
DATA_LOCATION= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: "3.4" | ||
services: | ||
|
||
masternode: | ||
env_file: | ||
-masternode.env | ||
image: tomochain/node:$TAG | ||
environment: | ||
IDENTITY: $IDENTITY | ||
PRIVATE_KEY: $PRIVATE_KEY | ||
BOOTNODES: $BOOTNODES | ||
NETWORK_ID: $NETWORK_ID | ||
VERBOSITY: $VERBOSITY | ||
NETSTATS_HOST: $STATS_HOST | ||
NETSTATS_PORT: $STATS_PORT | ||
WS_SECRET: $WS_SECRET | ||
volumes: | ||
- $DATA_LOCATION:/tomochain/data | ||
networks: | ||
- masternode | ||
ports: | ||
- 30303:30303/tcp | ||
- 30303:30303/udp | ||
restart: always | ||
|
||
networks: | ||
masternode: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.