/c9-docker-compose

Docker compose setup that makes it simple to run one or multiple headless miners for Nine Chronicles, a blockchain-based idle game I somehow stumbled into. The miners provide in-game currency.

Primary LanguageShell

Docker Composerized Headless Miner for Nine Chronicles

Nine Chronicles is an idle game created that runs on a blockchain based platform for multiplayer activities like PvP and Market activity.

It uses the in-game currency as a way to incentivize miners.

This repository is an attempt to make it simpler for miners to run multiple containers, tweak options, and pull logs.

This is for Linux currently.

This is currently built for folks running Linux.

If someone would like to help me in maintaining a Windows version, I would appreciate the support.

Setup

  1. Install Docker.
  2. Install Docker Compose.
  3. Git clone this repository
  4. Copy the .env.example to .env and fill in your details
  5. Open a terminal to where you cloned this repository
  6. Run: ./refresh-snapshot.sh
  7. Run: docker-compose up -d

Monitoring

  • See the full log: docker-compose logs --tail=100 -f
  • Watch for mined blocks: docker-compose logs --tail=100 -f | grep -A 10 --color -i 'Mined a block'

Check your NGC using the GraphQL Playground

This works when using the normal docker-compose.yml which enables the graphql server

query
{
  goldBalance(address: "YOUR_ADDRESS_HERE")
}