Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.42 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.42 KB

Zcash Docker container

A Docker container running Zcash as a service and exposing the REST API.

Prerequisites

Ensure that a user dockeruser with ID 10000 exists on your local system.

Configuration

Modify docker/zcash.conf according to your environment. Configure rpcallowip=... to allow the client/daemon to accept RPC connections outside the localhost and set an RPC username (rpcuser) and password (rpcpassword).

Make sure your config file includes the following line:

txindex=1

Client data is persisted on the host machine using a Docker volume. In the default setting the local directory ./data is mapped to to /opt/graphsense/data inside the container. To override these settings a Docker Compose override file can be used, e.g.

> cat docker-compose.override.yml
version: "3.1"

services:
  zcash-client:
    volumes:
      - /var/data/graphsense/clients/zec:/opt/graphsense/data

The data directory on the host system must be writeable by user dockeruser.

Usage

Building the docker container (the Zcash is version is specified in the Dockerfile):

docker-compose build

Starting the container (in detached mode):

docker-compose up -d

Showing log information:

docker-compose logs