Skip to content

antonr-p2p/nxtp-router-docker-compose

 
 

Repository files navigation

Router Docker Compose

Production-ready docker-compose for Connext routers.

Router Setup Using docker-compose

Requirements

Run docker-compose Stack

  1. Clone repo
cd ~
git clone https://github.com/connext/router-docker-compose.git
  1. Rename file .env.example to .env and modify it. You need to set next environment variables:

Note: Do not use :latest tag! This will not be stable as we are constantly updating! Find the latest Amarok release and use the version semver tagged, i.e. 0.2.1-beta.10.

  1. Go through docker-compose.yml and change any of the externally mapped ports if those ports do not work with your host configuration.

  2. Create configuration file ~/router-docker-compose/config.json, it will be mounted into router container. Use the config.example.jsonfor guidance on what config items to change/modify. At minimum, please add your own paid RPC providers to theproviders` array for each chain, and verify the assets for the desired chains. See Connext docs for configuration description.

  3. Rename file key.example.yaml to key.yaml and modify it. Web3Signer yaml key file ~/router-docker-compose/key.yaml will be mounted into the signer container. Example file uses raw unencrypted files method. See Web3Signer docs. And for more custom commands of web3signer, edit ~/router-docker-compose/data/signerConfig/config.yaml. Refer Web3Signer Command docs

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

cd ~/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 ROUTER_VERSION
  2. Update stack
docker-compose pull
docker-compose up -d

Infrastructure model

Infrastructure model

About

Production-ready docker-compose for NXTP routers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%