Code Monkey home page Code Monkey logo

node-docker-image's Introduction

Waves Node in Docker

[WARNING] Deprecation

This image is deprecated, we highly recommend to use wavesplatform/wavesnode image instead.

About Waves

Waves is a decentralized platform that allows any user to issue, transfer, swap and trade custom blockchain tokens on an integrated peer-to-peer exchange. You can find more information about Waves at wavesplatform.com and in the official documentation.

About the image

This Docker image contains scripts and configs to run Waves Node from version 0.13.0 for TESTNET, MAINNET or CUSTOM networks. The image is focused on fast and convenient deployment of Waves Node.

Container downloads .jar file and configuration files from the releases section and runs it.

Running the image

It is highly recommended to read more about Waves Node configuration before running the container.

The simplest way to run a container:

docker run -it wavesplatform/node

Note: We recommend to start a container like below for MAINNET:

docker run -p 6869:6869 -p 6868:6868 -e WAVES_NETWORK=MAINNET -e WAVES_LOG_LEVEL=DEBUG -e WAVES_HEAP_SIZE=2g -v YOUR_LOCAL_PATH_HERE:/waves wavesplatform/node    

For TESTNET:

docker run -p 6869:6869 -p 6863:6863 -e WAVES_NETWORK=TESTNET -e WAVES_LOG_LEVEL=DEBUG -e WAVES_HEAP_SIZE=2g -v YOUR_LOCAL_PATH_HERE:/waves wavesplatform/node    

You can run container with predefined environment variables:

Env variable Description
WAVES_WALLET_SEED Plain text seed for node wallet. Container converts it to base58.
WAVES_WALLET_SEED_BASE58 Base58 encoded seed.
WAVES_WALLET_PASSWORD Password for wallet file.
WAVES_VERSION Node version. Default value is latest. You can find the list of available versions here.
WAVES_NETWORK Available values are MAINNET and TESTNET.
WAVES_LOG_LEVEL Node logging level, available values: OFF, ERROR, WARN, INFO, DEBUG, TRACE. More details about logging are available here.
WAVES_HEAP_SIZE Java Heap Size limit in -X Command-line Options notation (-Xms=[your value]). More details here
WAVES_CONFIG_FILE Path to your Waves Configuration file.
WAVES_DECLARED_ADDRESS String with IP address and port to send as external address during handshake. Could be set automatically if UPnP is enabled. If declared-address is set, which is the common scenario for nodes running in the cloud, the node will just listen to incoming connections on bind-address:port and broadcast its declared-address to its peers.
WAVES_AUTODETECT_ADDRESS Set yes if you want to get your public address and set value declared-address with it.
WAVES_AUTODETECT_ADDRESS_PORT WAVES_AUTODETECT_ADDRESS can get only an IP address of the node, but not port number, so define your real port number with this variable.

Note: All variables are optional.

If you want to pass configuration file to the node, it should be in mounted volume with path configs/local.conf file.

Note: Environment variables override values in the configuration file.

Configuration

The image supports config customization with env variables. Depending on env values the image generates local.conf file and stores it in /waves/configs directory. The simple rule of how to set a value in the configuration file: 0. Determine the path to variable in configuration file (complete configuration file)

  1. Join all section names with two underscores(__).
  2. Replace all dashes with one underscore (_).
  3. Capitalize the final string.

For instance, if you want to set the value of waves.rest-api.enable, pass an environment variable WAVES__REST_API__ENABLE=no;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.