Skip to content

Latest commit

History

History
50 lines (38 loc) 路 1.25 KB

File metadata and controls

50 lines (38 loc) 路 1.25 KB

GovTool Docker Compose

This folder contains a compose file for running GovTool services locally.

Prerequisites

  • Docker and Docker Compose
  • A reachable db-sync Postgres instance

Configure environment

From the repo root

cd docker
cp .env.example .env

Note

Update the backend config file used by the govtool-backend service in example-config.json before starting the stack.

Also fill in the db-sync details and required URLs in the outcomes env file. Create env files for the frontend and metadata-validation services from their examples if they are not already present.

Note: The .env.example in this folder is for the outcomes service only.

Edit docker/.env with real values:

  • DBSYNC_POSTGRES_HOST
  • DBSYNC_POSTGRES_PORT
  • DBSYNC_DATABASE
  • DBSYNC_POSTGRES_USER
  • DBSYNC_POSTGRES_PASSWORD
  • IPFS_GATEWAY
  • PDF_API_URL

Start services

Option A: build locally (uses Dockerfiles)

docker compose up -d --build

Option B: use images only (no build)

docker compose pull
docker compose up -d --no-build

Service endpoints