This document describes how to run and interact with a Drivechain infrastructure stack through Docker Compose.
The file docker-compose.yml contains our different services.
Start all services, and detach from them. They'll keep running in the background.
$ docker compose up -dList all running services, and their status. A "good" service will have a status of healthy.
$ docker compose ps$ docker compose logs [-f] [--tail=N] [service(s)]These logs can also be piped to a file, or other commands. A recommended
tool for inspecting logs is lnav.
# In general:
$ docker compose exec SERVICE COMMAND
# For example:
$ docker compose exec mainchain drivechain-cli -rpcuser=user -rpcpassword=password -signet -getinfoMining is done through calling the GenerateBlocks endpoint on the enforcer.
$ docker compose run --rm buf curl \
--protocol grpc --http2-prior-knowledge \
http://enforcer:50051/cusf.mainchain.v1.WalletService/GenerateBlocks