One-shot Prisma migration runner for the Gegentic (educational edition) API database.
2.8K
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.
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.
This image does not run in isolation. A complete Gegentic deployment is a multi-container stack:
| Service | Image | Role |
|---|---|---|
db | postgres:16-alpine | Primary relational store |
migrate | gegentic/api-migration | This image — runs Prisma migrations, then exits |
api | gegentic/api | Core backend API |
portal | gegentic/portal | Frontend governance UI |
gateway | gegentic/gateway | LLM proxy with auth, guardrails, tracing |
guardian | gegentic/guardian | Guardrail evaluation engine |
clickhouse | clickhouse/clickhouse-server | Trace storage |
tracing | gegentic/tracing | LLM observability UI |
Get the full docker-compose.yml and .env.example from the Gegentic repository or registration package.
# 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
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 stringlatest — most recent stable release, matches the corresponding gegentic/api tagFor full setup instructions, configuration reference, and usage guides, see the docs at docs.gegentic.com.
This image is intended for educational/training use. For issues with the Gegentic edition, see the documentation at gegentic.com.
Content type
Image
Digest
sha256:6cd0ba92e…
Size
112.1 MB
Last updated
15 days ago
docker pull gegentic/api-migration