Armxy / nxtp-router-docker-compose

Production-ready docker-compose for NXTP routers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Production-ready docker-compose for NXTP routers.

License:The Unlicense


Languages

Language:Shell 100.0%