Sign inSign up

gegentic/api-migration

By gegentic

•Updated 15 days ago

One-shot Prisma migration runner for the Gegentic (educational edition) API database.

Image
Machine learning & AI
0

2.8K

gegentic/api-migration repository overview

⁠Gegentic API Migration

Gegentic is the educational edition of Obiguard⁠, an AI governance platform for organisations that want to enforce policy guardrails, compliance checks, and audit trails over their AI usage. This image (gegentic/api-migration) is a one-shot helper for a self-hosted Gegentic deployment — it applies Prisma database migrations against the Postgres instance used by gegentic/api, then exits.

This image is one piece of a multi-container stack. It will not run standalone — use the provided docker-compose.yml to bring up the full system.

⁠What this image is

gegentic/api-migration runs npx prisma migrate deploy against the configured database and exits with status 0 on success. It shares the same Prisma schema as gegentic/api, so the two images must always be deployed from matching tags.

In docker-compose.yml this is the migrate service — it should run to completion (depends_on: ... condition: service_completed_successfully) before the api service starts, so the schema is up to date before the API boots.

⁠Full stack

This image does not run in isolation. A complete Gegentic deployment is a multi-container stack:

ServiceImageRole
dbpostgres:16-alpinePrimary relational store
migrategegentic/api-migrationThis image — runs Prisma migrations, then exits
apigegentic/apiCore backend API
portalgegentic/portalFrontend governance UI
gatewaygegentic/gatewayLLM proxy with auth, guardrails, tracing
guardiangegentic/guardianGuardrail evaluation engine
clickhouseclickhouse/clickhouse-serverTrace storage
tracinggegentic/tracingLLM observability UI

Get the full docker-compose.yml and .env.example from the Gegentic repository⁠ or registration package.

⁠Quick start

# 1. Register to get a license key
#    https://gegentic.com/gegentic/edu/register

# 2. Copy and fill in the environment file
cp .env.example .env
# edit .env: LICENSE_KEY, ORG_NAME, DB credentials, encryption keys, etc.

# 3. Bring up the stack (migrate runs first, then exits)
docker compose up -d

⁠Configuration

This image only needs database connectivity to run — see .env.example for the full list of variables shared across the stack, including:

  • DB_USER / DB_PASSWORD / DB_NAME — Postgres credentials used to build the connection string

⁠Tags

  • latest — most recent stable release, matches the corresponding gegentic/api tag

⁠Documentation

For full setup instructions, configuration reference, and usage guides, see the docs at docs.gegentic.com⁠.

⁠Support

This image is intended for educational/training use. For issues with the Gegentic edition, see the documentation at gegentic.com⁠.

Tag summary

Content type

Image

Digest

sha256:6cd0ba92e…

Size

112.1 MB

Last updated

15 days ago

docker pull gegentic/api-migration