Coder Social home page Coder Social logo

10imaging-_-pond-deploy's Introduction

DefiChain Pond

This is a self-hosted ocean api (https://ocean.defichain.com) that you can deploy for your own usage. It is based on the official DefiChain full node and the original Jellyfish Whale code base.

Prerequisites

  • Linux VPS (Tested on 2 CPU, 4 GB Ram)
  • Docker installed
  • Docker Compose installed
  • Minimum 200 GB free storage
  • Domain name pointing to the Linux VPS
  • Git installed
  • Allow your normal user to access docker usermod -aG docker your_user

You can find the docker engine setup here https://docs.docker.com/engine/install/.

Setup

As your normal user:

First clone this git repository

git clone https://github.com/defichain-pond/pond-deploy.git
cd pond-deploy

Then, run the following script.

. ./setup.sh EMAIL DOMAIN

DOMAIN is your custon domain that needs to point to your servier. Something like pond.example-domain.com You can verify if the domain name is pointing to your server using following command: nslookup -type=A domain_name

EMAIL the email is required for the SSL certificate generation. You will get notified when this certificate is being expired. Although the mechanism will automatically renew it for you.

Security

The rpc username and password are generated automatically in setup.sh, then will be injected into docker-compose.

Snapshots

We upload regular snapshots for the defichain node as well as whale DB to https://snapshots-eu.sanc.ch/

Monitoring

You can monitor your Pond environment my checking the url https://your_domain.com/_actuator/probes/readiness. This will return a 2xx return code if all is file. It will fail if pond-node or pond-whale or traeffik or the whole server is down. You can use a service such as UptimeRobot to monitor your service.

Depending on the issue Traefik service will automatically failover to the proper Ocean. This will not work if either Traefik or the whole server is down

Troubleshooting

  1. Is pond-node running?

docker logs -f pond-node --tail 50

  1. Is pnod-whale running and no errors?

docker logs -f pond-whale --tail 50

AWS Cloudformation deployment

For users who want to deploy Pond on AWS they can simply use the AWS Cloudfromation template and deploy it on AWS (Currently we are supporting only eu-central-1 Frankfurt region).

To deploy Pond on AWS you can follow the steps mentionned in Cloudformation-deploy

AWS Pricing Calculator

The estimated monthly price of Pond deployment including t3.medium EC2 instance will be 58$. A summary of the Pricing calculator can be found in the Pricing page.

The price can be brought down substancially if you want a reserved instance with 1 year upfront payment. It goes down to $247 USD / year or $19 USD / month.

Support

If you are facing any issues feel free to open either a Github Issue or join us on Telegram

Contributors

  • @sancag
  • @laghao

License

MIT

10imaging-_-pond-deploy's People

Contributors

laghao avatar sancag avatar sandrich avatar

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.