Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.
Rhys Bartels-Waller edited this page Mar 9, 2020 · 9 revisions

Docker builds of cardano-explorer-api and cardano-tx-submit are available on Docker Hub.

The docker-compose.yaml in this repo provides a working reference, and can be used as-is with the addition of database configuration files created, or used as a starting point to manage the stack of Cardano services.

Required config files

./config/pgpass

PostgreSQL Documentation

postgres:5432:cardano-db:postgres:a-secret-password

./config/secrets/postgres_db

cardano-db

./config/secrets/postgres_password

a-secret-password

./config/secrets/postgres_user

postgres

Run

NETWORK=testnet docker-compose up

Stop

docker-compose down

or if wishing to remove data volumes

docker-compose down -v

Building the Docker image locally

Ensure that you have Nix installed and the IOHK binary cache enabled (instructions).

Then run these commands from the cardano-rest git repo:

docker load -i $(nix-build -A dockerImages.txSubmit --no-out-link)
docker load -i $(nix-build -A dockerImages.explorerApi --no-out-link)

If you have no local changes, the build should be downloaded from the IOHK binary cache then loaded into the local Docker registry.

Clone this wiki locally