Local Configuration & Setup
This guide will walk you through the steps to get the Single-Repo Data Platform (SRDP) running on your local machine. There are two options:
- Docker Compose: simplest, no Kubernetes needed, good for trying out the stack locally.
- Kubernetes (Helm): closer to the production setup, requires a local cluster.
Both options require mkcert for local TLS certificates.
The *.srdp.localhost domains resolve to your own machine by themselves, so no hosts-file entries are needed.
Using another domain
The base domain of every hostname is domain in the [deploy] table of srdp.toml.
To use another one, change it there before the first start, then run the TLS recipe of your option and start the stack.
The just recipes pass it to Docker Compose and to the local Helm deploy, so every hostname from auth.<domain> to dagster.<domain> follows it.
Docker Compose gets it as SRDP_DOMAIN and won't start without it, so docker compose up without just needs it too, for example SRDP_DOMAIN=srdp.localhost docker compose up.
Zitadel records its domain when it starts for the first time.
A domain outside .localhost also needs DNS records that point its hostnames at your machine.
Option A: Docker Compose
1) Clone the repo
git clone git@github.com:srdp-hub/srdp.git # or git clone https://github.com/srdp-hub/srdp.git
cd srdp
2) Install the local CA and generate TLS certificates
The stack serves everything over HTTPS because Zitadel and OAuth2-Proxy require it. mkcert creates locally-trusted certificates so your browser won't show warnings.
Install mkcert following its own instructions, then run:
just docker-tls # trusts mkcert's local CA and generates certs in deploy/docker/certs/
just docker-up also runs it, so the certificate always matches the domain.
3) Create the environment file
cp deploy/docker/.env.example deploy/docker/.env
just docker-up generates every empty password, key and token in deploy/docker/.env once.
A value you set yourself stays.
You will need to update OAUTH2_PROXY_CLIENT_ID and OAUTH2_PROXY_CLIENT_SECRET after you create the OIDC application in Zitadel; see First boot: create the Zitadel OIDC application below.
DuckLake keeps its Parquet files in the ducklake-data volume by default.
To keep them in an S3 bucket on the bundled Garage server instead, set these in .env:
COMPOSE_PROFILES=s3starts Garage.SETUP_GARAGE_ENABLED=trueturns on the Garage step ofsrdp-setup, which creates the bucket and imports the two keys before any DuckLake service starts.DUCKLAKE_STORAGE_BACKEND=s3moves DuckLake to the bucket.- The four
DUCKLAKE_S3_*_KEY_IDandDUCKLAKE_S3_*_SECRETvalues and the twoGARAGE_*secrets go in as.env.exampledescribes.
The Garage step's other settings live in the [setup.garage] table of srdp.toml.
Only set SETUP_GARAGE_ENABLED=true together with the s3 profile, because the step waits for Garage and fails if it never starts.
4) Start the stack
just docker-up
This builds the local images and starts every service defined in deploy/docker/docker-compose.yml.
The first run takes a few minutes while images are pulled and built.
Quarto is disabled by default, because it has no current use.
The chart can run it with quarto.enabled: true. Its image builds from services/quarto/ on a Docker Hardened Image, runs as uid 65532 and listens on 8080.
Docker Compose has no Quarto service. To add one, copy the hub service and route it in config/traefik/dynamic/srdp.yml.
To stop the stack:
just docker-down
Warning: Do not run
docker compose down -vunless you want to destroy all persistent data, including your Zitadel configuration.
Option B: Kubernetes (Helm)
1) Clone the repo
git clone git@github.com:srdp-hub/srdp.git # or git clone https://github.com/srdp-hub/srdp.git
cd srdp
2) Reach the cluster
The chart uses *.srdp.localhost by default. On the local kind cluster this repo is set up for, Traefik's ports are mapped to host ports 80 and 443 (see deploy/kubernetes/kind-config.yaml), so the URLs have no port suffix. Docker Compose publishes the same ports, so run either the Compose stack or the kind cluster, not both. On any other cluster, point these hostnames at whatever IP you use to reach Traefik: a LoadBalancer's external IP once it's up, or a port-forward's 127.0.0.1 if it isn't reachable directly (see docs/07-troubleshooting.md).
3) Install the local CA, create the kind cluster, and generate TLS certificates
Install mkcert and kind following their own instructions, then run:
just local-tls # trusts mkcert's local CA, creates the kind cluster (if needed), certs, and the k8s TLS secret
just local-deploy also runs it, so a new cluster always gets the certificate.
just local-tls depends on kind-up, so it creates the srdp kind cluster on first run and points kubectl at it; on later runs it just reuses the existing cluster. kind runs as plain containers on whatever Docker daemon you already have (Colima, OrbStack, native Docker Engine on Linux, your own preference, this repo doesn't assume one), no separate VM for Kubernetes itself.
4) Build local container images
The Helm chart references the application images that the kind-load-images recipe builds. just local-deploy (step 6) builds and loads them into the kind cluster automatically via the kind-load-images recipe, kind nodes don't share the host's image store, so pullPolicy: Never needs its own copy loaded with kind load docker-image, not just a local docker build. Run it standalone if you want to rebuild without a full redeploy:
just kind-load-images
5) Secrets and local values
just local-deploy runs just local-secrets, which generates every password and key once as a Secret in the srdp namespace.
A Secret that exists keeps its values, so a redeploy changes no password.
No values file holds a credential.
Keep custom-ingress-cert (created above), or point to another TLS secret if you prefer.
6) Install the chart locally
just local-deploy
This builds and loads the images (step 4), installs the chart, then reads back Traefik's actual (dynamically-assigned) ClusterIP and feeds it into oauth2-proxy's pod-level host alias in a second pass, since that IP can't be known ahead of the first install. Re-run the same command to pick up updated values.
The chart deploys the full stack: Traefik, PostgreSQL (in-cluster via Bitnami Helm chart), Zitadel, OAuth2-Proxy, Dagster (webserver + daemon + user code), Marimo, Streamlit, the API, DuckDB UI, Marquez, and the hub landing page.
Quarto is disabled by default (quarto.enabled: false in values.yaml), flip it back on when it's needed again.
PostgreSQL hosts the zitadel, dagster, marquez, and ducklake databases.
The Bitnami subchart's auth.* fields create zitadel, and the srdp-setup Job creates the rest from the setup.databases list in values.yaml on every install and upgrade.
First boot: create the Zitadel OIDC application
OAuth2-Proxy needs an OIDC client registered in Zitadel. Zitadel creates its first instance and admin user automatically on first start, but the OIDC application is created manually through the Zitadel console. Do this once, after the stack is up, for either deployment option.
1) Sign in to the Zitadel console
Open https://auth.srdp.localhost and sign in as the first-instance admin. Zitadel derives the default admin login name from the configured ExternalDomain, so for the local stack it is:
- Login name:
zitadel-admin@zitadel.auth.srdp.localhost - Password: for the Kubernetes chart, run
just local-admin-password. For the Docker Compose stack, it isZITADEL_ADMIN_PASSWORDindeploy/docker/.env. Zitadel's own complexity rule applies, so the password needs an uppercase letter, a lowercase letter, a digit, and a symbol.
If the login name differs, check it under Users in the Zitadel console.
2) Create the OIDC application
- Create (or open) a project, then add an application of type Web.
- Use the Code authentication flow (client ID + secret).
- Add a redirect URI
https://<host>/oauth2/callbackfor each host that OAuth2-Proxy protects. The host list is theoauth2-proxyrouter rule inconfig/traefik/dynamic/srdp.yml.
Zitadel then shows a Client ID and Client Secret.
3) Apply the credentials
- Docker Compose: set
OAUTH2_PROXY_CLIENT_IDandOAUTH2_PROXY_CLIENT_SECRETindeploy/docker/.env, then runjust docker-upto recreate OAuth2-Proxy with the new values. - Kubernetes: run
just local-oidc-client. It asks for the client ID and the secret, stores them in thesrdp-oauth2-proxySecret and restarts OAuth2-Proxy.
Congratulations! The local environment should now be up and running. Proceed to the next section, Usage & Verification, to confirm that everything is working correctly.