Giter Club home page Giter Club logo

nxtp-router-docker-compose's Introduction

NXTP Router Docker Compose

Production-ready docker-compose for NXTP routers.

Router Setup Using docker-compose

Requirements

Run docker-compose Stack

  1. Clone repo
cd ~
git clone https://github.com/connext/nxtp-router-docker-compose.git
  1. Rename file .env.example to .env and modify it. You need to set next environment variables:
  1. (Optional) Modify .env file and set alert notifications to Slack or Discord.

For Discord set:

  • DISCORD_WEBHOOK - Discord webhook full url

Modify docker-compose.yml file and uncomment (remove #) for all alertmanager-discord section.

Note: for Discord notifications used two containers alertmanager and alertmanager-discord

  1. Create NXTP configuration file ~/nxtp-router-docker-compose/config.json, it will be mounted into router container. See Connext docs for configuration description.

  2. Create Web3Signer yaml key file ~/nxtp-router-docker-compose/key.yaml, it will be mounted into the router container. See Web3Signer docs. And for more custom commands of web3signer, edit ~/nxtp-router-docker-compose/data/signerConfig/config.yaml. Refer Web3Signer Command docs

  3. Create docker-compose services, volumes and network.

cd ~/nxtp-router-docker-compose
docker-compose create
  1. Run docker-compose stack.
docker-compose up -d
  1. Check the status.
docker-compose ps
OR
docker ps -a
  1. Check the logs.
docker-compose logs
OR
docker-compose logs router

You can also use these commands.

docker logs router
  1. Stop and delete containers.
docker-compose down

Other Tasks

Restart Stack

docker-compose restart

Update Version

  1. Modify .env to change NXTP_VERSION
  2. Update stack
docker-compose pull
docker-compose up -d

CI

Update latestVersion file in the repo to automatically update production router.

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.