stack up
Start the full stack or selected services.
Usage
postkit stack up # Start all services
postkit stack up postgres traefik # Start specific services
postkit stack up --no-wait # Skip health check waiting
postkit stack up --no-keys # Skip auto-fetching JWKs on init
Arguments
| Argument | Description |
|---|---|
[services...] | Services to start: postgres, keycloak, postgrest, traefik. Omit for all. |
Options
| Option | Description |
|---|---|
--no-wait | Skip waiting for health checks |
--no-keys | Skip auto-fetching Keycloak JWKs during first-run initialization |
What It Does
- Checks Docker and Docker Compose availability
- Loads config, auto-generates missing secrets (passwords, JWKs)
- Generates
.postkit/stack/docker-compose.yml - Phase 1 — Starts
postgres+traefik, waits for health checks - Phase 2 — Applies
db/infra/SQL, committed migrations, and seeds - Phase 3 — Starts
keycloak+postgrest, waits for health checks - Phase 4 (first run only) — Imports realm template, fetches JWKs, restarts PostgREST
Phase 4 is skipped when is_initial = false in postkit.stack_config. It resets automatically after stack down --volumes.
Dependency Rule
Selecting keycloak or postgrest automatically includes postgres and traefik.