Skip to content

Instantly share code, notes, and snippets.

@nmarley
Last active November 26, 2018 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmarley/c154596915071960ce3a09d8d8513b26 to your computer and use it in GitHub Desktop.
Save nmarley/c154596915071960ce3a09d8d8513b26 to your computer and use it in GitHub Desktop.
docker-compose dashd example

docker-compose dashd example

Install

Clone this repo:

git clone https://gist.github.com/c154596915071960ce3a09d8d8513b26.git
cd c154596915071960ce3a09d8d8513b26

Pull DashCore reference image:

docker-compose pull

Usage

Start the dashd process in the background:

docker-compose up -d

Now stop the dashd process whenever:

docker-compose down

You can inspect the volume in another container to see the DashCore is shutting down gracefully. Let's use Ubuntu for that (note: you may have to search for the right volume name):

docker pull ubuntu:latest
docker run -it --rm --name tester -v c154596915071960ce3a09d8d8513b26_dashd-data:/data ubuntu:latest tail -n3 /data/.dashcore/debug.log
version: '3'
services:
core:
image: dashpay/dashd
restart: always
ports:
- 127.0.0.1:9998:9998
- 9999:9999
volumes:
- dashd-data:/dash
command: "dashd -rpcallowip=::/0 -printtoconsole=0"
volumes:
dashd-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment