Giter Site home page Giter Site logo

docker-factom's Introduction

A Dockerized Factom Sandbox

Factom is a general purpose data layer for the blockchain.

Prerequisites

It's assumed that you are familiar with Docker and have it installed. Dive into the Docker Docs if not.

Quick start

Run a sandbox container in background:

docker run -d --name factom-sandbox tyrone98/factom

Execute factom-cli in the running container:

docker exec -it factom-sandbox factom-cli properties

Expose ports

This container exposes the following TCP ports: 8088, 8089 and 8090. You can bind them to your host machine:

docker run -d -p 8088:8088 -p 8089:8089 -p 8090:8090 tyrone98/factom:sandbox

Retrieve logs

Because Supervisor is used to run both factomd and fctwalled inside one container, docker logs will retrieve logs from supervisord. Follow factomd logs by running:

docker exec -it factom-sandbox tail -f /root/.factom/factom-d.log

Same for fctwallet:

docker exec -it factom-sandbox tail -f /root/.factom/fctwallet.log

Data persistence

It's recommended to mount a data volume at /root/.factom to persist Factom's data:

docker run -d -v /root/.factom --name factom tyrone98/factom

Factom configuration

According to these recommendations several changes to factomd.conf were made:

  • NodeMode is set to SERVER
  • ExchangeRate is 00000100
  • fctwallet listens on 0.0.0.0

docker-factom's People

Contributors

np avatar

Watchers

 avatar James Cloos avatar  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.