Git Product home page Git Product logo

kmdocker's Introduction

kmdocker

Containerization of any komodod based project.

This repo builds images and pushes to docker hub. See: https://hub.docker.com/r/webworker01/kmdocker/tags

You can create a docker compose to run a daemon like this:

services:
  mortyd:
    container_name: mortyd
    image: webworker01/kmdocker:latest
    environment:
      PARAMS: -printtoconsole -ac_name=MORTY -ac_supply=90000000000 -ac_reward=100000000 -ac_cc=3 -ac_staked=10
      COIN: MORTY
    volumes:
      - /home/USERNAME/.komodo/MORTY:/home/komodo/.komodo/MORTY
      - /home/USERNAME/.zcash-params:/home/komodo/.zcash-params
services:
  pirated:
    container_name: pirated
    image: webworker01/kmdocker:pirated-latest
    environment:
      PUID: 1001
      PGID: 1001
    ports:
      - '45452:45452'
      - '127.0.0.1:45453:45453'
    volumes:
      - /home/USERNAME/.komodo/PIRATE:/home/komodo/.komodo/PIRATE
      - /home/USERNAME/.zcash-params:/home/komodo/.zcash-params

This will create a non-root container with the coin daemon running on UID/GID 1000 by default.

If your UID/GID are different, set the PUID and PGID args to the user on your host system as env vars if you wish for the blockchain files to be owned by your user.

If the local directories mapped as volumes do not exist already they might be owned by root and should be safe to chown to your user as long as it matches your PUID / PGID you set earlier

If you have rootless docker installed and want the data files to be owned by the user on your host, please take a look at this example:

services:
  komodod:
    container_name: komodod
    image: webworker01/kmdocker:latest
    environment:
      USERNAME: root
      PUID: 0
      PGID: 0
      COIN: KMD
    ports:
      - '7770:7770'
      - '127.0.0.1:7771:7771'
    volumes:
      - /home/USERNAME/.komodo:/root/.komodo
      - /home/USERNAME/.zcash-params:/root/.zcash-params

Rootless docker maps root in the container to your user on the host. Other UIDs will be mapped to subuids under your user.

kmdocker's People

Contributors

webworker01 avatar

Stargazers

 avatar

Watchers

 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.