---
url: /operations/docker-stack.md
---

# Run with Docker

The Docker Compose setup is for isolated local development and demos only. Do not expose it as a production or test deployment and do not reuse its demo credentials or other local defaults. Production and test systems must use a separate, non-public and appropriately secured deployment procedure.

See the [stack README](https://github.com/it-at-m/mucgpt/blob/main/stack/README.md) for the local Docker Compose setup instructions, including:

* Quick start guide
* Service architecture and ports
* Local Compose and local development modes
* Common commands and troubleshooting
* [Using Docker instead of Podman (incl. Windows/WSL2)](https://github.com/it-at-m/mucgpt/blob/main/stack/README.md#using-docker-instead-of-podman)

## Demo credentials

The local Docker demo stack includes a standard user and an admin user for testing role-based access:

* `demo-user` / `mucgpt`
* `demo-admin` / `mucgpt`

These credentials are only for the isolated local development stack and must not be reused in production or test environments.

## Prebuilt container images

For real deployments, pull the prebuilt release images instead of building from source. Every release publishes the same runnable image (same tags and platform images) to two registries — pick whichever suits your environment. The openCode mirror omits GHCR-only BuildKit attestations:

| Component          | ghcr.io                                              | registry.opencode.de                                                                |
| ------------------ | ---------------------------------------------------- | ----------------------------------------------------------------------------------- |
| Frontend           | `ghcr.io/it-at-m/mucgpt/mucgpt-frontend`             | `registry.opencode.de/landeshauptstadt-muenchen/mucgpt/mucgpt-frontend`             |
| Core service       | `ghcr.io/it-at-m/mucgpt/mucgpt-core`                 | `registry.opencode.de/landeshauptstadt-muenchen/mucgpt/mucgpt-core`                 |
| Core migrations    | `ghcr.io/it-at-m/mucgpt/mucgpt-core-migrations`      | `registry.opencode.de/landeshauptstadt-muenchen/mucgpt/mucgpt-core-migrations`      |
| Assistant service  | `ghcr.io/it-at-m/mucgpt/mucgpt-assistant`            | `registry.opencode.de/landeshauptstadt-muenchen/mucgpt/mucgpt-assistant`            |
| Migrations service | `ghcr.io/it-at-m/mucgpt/mucgpt-assistant-migrations` | `registry.opencode.de/landeshauptstadt-muenchen/mucgpt/mucgpt-assistant-migrations` |

Tags follow the release tags (`mucgpt-<component>-<version>`): each image is available as `<version>` and as `latest`, for example:

```bash
docker pull registry.opencode.de/landeshauptstadt-muenchen/mucgpt/mucgpt-core:latest
docker pull ghcr.io/it-at-m/mucgpt/mucgpt-core:1.0.0
```

Pulling from ghcr.io is anonymous. The openCode registry is the GitLab container registry of gitlab.opencode.de: anonymous pulls work if the project is public, otherwise authenticate with a GitLab account or an access token with `read_registry` scope.

## Database migration ordering

The core service does not create or upgrade database schema at startup. For every core release, stop accepting new generation requests and stop/drain every old writer before starting fence-aware instances, then run the matching `mucgpt-core-migrations` image as a deployment Job and wait for it to complete successfully before rolling out `mucgpt-core`. This applies to both the conversation/checkpoint schema and document storage schema. See the [conversation persistence rollout procedure](../development/conversation-persistence.md#schema-migration-and-rollout) for the required ordering. Deploying a core image before its migration Job, or retaining a stale migration image, can cause runtime database errors. Migration Jobs serialize through a PostgreSQL advisory lock; if overlapping Jobs are possible, set `MIGRATION_LOCK_TIMEOUT=0` to wait for the active Job rather than failing after the default 30 seconds.
