Code Monkey home page Code Monkey logo

docker-navcoind's Introduction

Navcoin Full Node for Docker

Navcoind + Wallet + WebUI docker image, thats run the Navcoin Full Node to earn Proof of Stake rewards.

Requirements

  • Any phisical or virtual machine that support docker.
  • 2GB to store the blockchain files (warning, the chain is always growing).
  • And 1 GB of RAM.

Quick start

  1. First you need to create a named volume navcoin-data to persist the blockchain and wallet files:
     docker volume create --name=navcoin-data

Or directly you can use a specific directory from the host, i prefer named volumes.
For know the difference, read this: Manage data in containers.

So if you want to reboot, upgrade or destroy the container, that files will be safe.

  1. Create the container:
     docker run -v navcoin-data:/navcoin --name=navcoin-full-node -d \
                -p 44440:44440 \
                -p 127.0.0.1:44444:44444 \
                -p 8080:443 \
                sebaponti/docker-navcoind
  1. Check if the container its susefuly created, and its running:
     docker ps
  1. You can then access the daemon's output thanks to the docker logs command.
     docker logs -f navcoin-full-node
  1. Put this https://localhost:8080 in your browser, add the self-signed certificate and dont forget to change the default password for the Web UI.

Create a new SSL certificate

The smokebox web application has ssl-mod enabled for default, the certificate its created in the image building process, but if you want to create a new one, run this command:

     docker exec -it navcoin-full-node openssl req -x509 -nodes -days 3650 \
          -newkey rsa:2048 -out /etc/apache2/ssl/navpi-ssl.crt \
          -keyout /etc/apache2/ssl/navpi-ssl.key

Then we need to flush and reload apache:

     docker stop navcoin-full-node && docker start navcoin-full-node

Custom Building (optional)

You can build the image with custom parameters like id's of your unprivileged user,
clone the repository and build the image with this args:

     docker build --build-arg USER_ID=$( id -u ) --build-arg GROUP_ID=$( id -g ) .

By default the image is building with the user and group id = 1000.

Update

To get the latest version of this image run:

     docker pull sebaponti/docker-navcoind

Sources

Contributions

navcoin adrress

docker-navcoind's People

Contributors

sponti avatar stabastian avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-navcoind's Issues

Please Update

Please Update to NavCoin 4.3 Update in the GUI does not work and creating my own Docker Image was unsuccessful so far...

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.