Skip to content

Instantly share code, notes, and snippets.

@nmarley
Last active Nov 26, 2018
Embed
What would you like to do?
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