Quick Start
This page goes through how to quickly get a local Katalogue environment up and running with Docker compose.
Eventhough docker compose might be used in a production scenario, the deployment described here is only intended for demo and testing purposes. There are security issues and risk for data loss with the default docker compose setup shipped with Katalogue. For a production scenario, read up on the Deployment options.
Requirements
Section titled “Requirements”-
Docker - In order to run Katalogue locally you need Docker installed on your computer. You can use either the licensed Docker Desktop application or the open source Docker components which require WSL (Windows Subsystem for Linux) to run on Windows. Docker Desktop.
-
GIT - The Katalogue code is located at https://github.com/kayentaconsulting/katalogue, get a local copy of the main branch. Note that this is a private repo and you need an invite from Kayenta in order to access it.
Start Local Katalogue Instance
Section titled “Start Local Katalogue Instance”- Make sure you have Docker and Git installed.
- Clone the Katalogue source code from GitHub.
- Open a command prompt and
cdto the folder where you saved the Katalogue source code. You should see a file calleddocker-compose.yml. - In that folder, type
docker compose upand hit enter. - Docker will now use the Dockerfiles for each Katalogue service in
/services/*to build and start the Docker images. It will take a minute or two but once the build is complete you should be back at the prompt and see something like this:
- Open your browser and navigate to http://localhost:8080 to access Katalogue.
- Login with these credentials:
- Username: admin
- Password: admin
Stop Local Katalogue Instance
Section titled “Stop Local Katalogue Instance”Type Ctrl + C in the terminal window that is running docker compose to stop the instance.
You can also type docker compose stop in another window to shut it down.
Stopping the container with this command is safe, i.e. data will be persisted.
Re-build Local Katalogue Instance
Section titled “Re-build Local Katalogue Instance”The docker images and containers need to be rebuilt if changes are made to any of the services or docker-compose.yml. The most common scenarios for this is that something went wrong the first time Katalogue was initialized or when you want to upgrade an existing local deployment to a new Katalogue version. I.e. if you download updates to the source code from GitHub.
Run this to do a complete rebuild of all images and containers. This will not delete any data as long as the docker-compose.yml file is used without changes.
docker compose up --build --force-recreate --no-cacheDelete Local Katalogue Instance
Section titled “Delete Local Katalogue Instance”To completely purge the Katalogue instance and its data from docker, run this command.
docker compose down --rmi all -vDocker Compose Commands
Section titled “Docker Compose Commands”Here are a few useful commands to manage the Katalogue instance deployed with docker compose.
The only commonly dangerous command here is down -v, as that will delete the database docker volume where data is persisted.
| Command | Description | Rebuild Image | Recreate Container | Removes Container | Removes Volume | Risk of Data Loss |
|---|---|---|---|---|---|---|
docker compose build | Builds (or rebuilds) service images from Dockerfiles | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ None |
docker compose up | Starts services (creates containers if needed) | ❌ No (unless needed) | ⚠️ Sometimes | ❌ No | ❌ No | ❌ None |
docker compose up --build | Builds images before starting services | ✅ Yes | ⚠️ Sometimes | ❌ No | ❌ No | ❌ None |
docker compose up --force-recreate | Forces all containers to be recreated | ❌ No | ✅ Always | ✅ Yes (old container) | ❌ No | ❌ None* |
docker compose up --build --force-recreate | Rebuilds images and recreates containers | ✅ Yes | ✅ Always | ✅ Yes (old container) | ❌ No | ❌ None* |
docker compose down | Stops and removes containers and networks | ❌ No | ❌ No | ✅ Yes | ❌ No | ❌ None |
docker compose down -v | Stops and removes containers, networks, and volumes | ❌ No | ❌ No | ✅ Yes | ✅ Yes | ⚠️ Yes (deletes DB data) |
docker compose down --rmi all | Stops containers and removes all related images | ❌ No | ❌ No | ✅ Yes | ❌ No | ❌ None |
docker compose down --rmi all -v | Stops and removes containers, networks, images and volumes | ❌ No | ❌ No | ✅ Yes | ❌ No | ⚠️ Yes (deletes DB data) |
* Data is safe if you’re using the default docker-compose.yml file.
Guide - Adding Data to Katalogue
Section titled “Guide - Adding Data to Katalogue”Every Katalogue installation comes with a ready-made connection to its own repository database, and with a glossary describing what is in it. That makes Katalogue itself the quickest datasource to try: there is nothing to set up before the first sync.
Running the Sync
Section titled “Running the Sync”- Navigate to Tasks, found under Manage in the navigation menu to the left.
- Select the Katalogue Repository sync task and click Run in the toolbar above the table. You can also click the task name to open it and run it from there.
- The task runs in the background. Open it to follow the job on the Jobs tab, and wait until it has completed.
Browsing the Datasource
Section titled “Browsing the Datasource”- Navigate to Datasets, found under Browse in the navigation menu.
- Click the Katalogue system. The Datasources tab now lists the katalogue database.
- Click it to browse its schemas, tables and fields. The Relationships tab shows how the tables are related to each other.
Exploring the Glossary
Section titled “Exploring the Glossary”- Navigate to Glossaries, found under Browse in the navigation menu.
- Open the Katalogue glossary. It describes every concept in the database you just synced, such as Dataset, Field and Job.
- Open a concept and go to its Related Assets tab to see the other concepts that mention it.
Next Steps
Section titled “Next Steps”To sync one of your own databases, create a Connection for it as described in Syncing Datasources. See Connectors for the datasources Katalogue can connect to.