Giter Site home page Giter Site logo

docker-compose's Introduction

Running Ironfish with Docker Compose

There are 2 docker-compose files:

  1. docker-compose.yml - Intended for users who wish to start a node and miner using Docker.
  2. docker-compose.dev.yml - Intended for developers who wish to run two nodes with a miner on a new network.

User config

docker-compose.yml is based on docker-compose config version 2.4. This version is compatible with older versions of Docker and allows for setting CPU and memory limits to avoid out of memory errors.

Users should change their node name and graffiti by editing the following line in the docker-compose.yml file:

command: ["start", "--graffiti", "graffitiExample", "--name", "nodeExample"]

Users may change the memory limit for the miner in the docker-compose.yml file by editing the following line (8192MB is default):

mem_limit=8192M

Base commands

Run the node and miner at the same time in detached mode: docker-compose up -d

Follow the logs: docker-compose logs -f

Follow the status : docker-compose exec node ironfish status -f

Create an account: docker-compose exec node ironfish accounts:create

Check your balance: docker-compose exec node ironfish accounts:balance

Create a transaction: docker-compose exec node ironfish accounts:pay

You can find more commands by running docker-compose exec node ironfish help.

Developer config

docker-compose.dev.yml is based on docker-compose config version 3.7. This version is more compatible with versions of Docker in Linux package repositories, which don't consistently support versions greater than 3.7.

This setup can be used with Docker Swarm, as well as Docker Compose by adding the --compatibility flag.

Base command:

docker-compose -f docker-compose.dev.yml --compatibility up

docker-compose's People

Contributors

nullsoldier avatar

Watchers

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