Qyra

Self-host Qyra using docker compose

Run a minimal Qyra instance on your own machine with Docker Compose

This guide will give you a minimal Qyra instance running on your local machine. It will not be accessible from the internet, but it will be accessible from your local machine. This is a great way to get started with Qyra for a proof-of-concept without needing access to kubernetes.

Prerequisites

1. Clone the Qyra repository

Clone the Qyra code to your local machine. This will create a new directory called ./qyra (the Qyra directory).

# Clone the Qyra repo
git clone https://github.com/quanvio/qyra
cd qyra

2. Update your ENV config

Edit all the ENV variables in .env to match your setup, eg:

PGHOST=db
PGPORT=5432
PGUSER=pg_user *OR* machine username if no prior postgres set up
PGPASSWORD=pg_password *OR* blank if no prior postgres set up
PGDATABASE=postgres
DBT_DEMO_DIR=/*path*/*to*/qyra/project/examples/full-jaffle-shop-demo

3. Create containers

You must set the following two environment variables:

  • PGPASSWORD is the password used for the internal postgres database
  • QYRA_SECRET is the secret used to encrypt data at rest in the database. If you lose this secret, you will not be able to access your data in Qyra.
export QYRA_SECRET="not very secret"
export PGPASSWORD="password"

docker compose -f docker-compose.yml --env-file .env up --detach --remove-orphans

If you have a Windows machine and get the error Error response from daemon: i/o timeout. Go to Docker > Settings > General and enable the option Expose daemon on tcp://localhost:2375 without TLS