# Model Dock Bootstrap

This directory is the implementation-ready bootstrap pack for the locked foundation.

## Contents
- `docker-compose.yml`: local private-plane stack bootstrap for `docker-compose`
- `.env.example`: required environment variables to pin before launch
- `config/litellm/config.yaml`: initial LiteLLM alias stub
- `config/postgres/init/001_init_modeldock.sql`: initial Postgres schema bootstrap
- `config/registry-sync/config.json`: registry sync policy
- `config/registry-sync/sync_models.py`: additive Ollama inventory sync stub
- `config/output-sync/policy.json`: output routing policy stub

## Bootstrap order
1. Copy this pack into `/srv/arch1/modeldock`.
2. Replace every `TODO_...` value with real secrets, URLs, image tags, and folder policies.
3. Create a real `.env` from `.env.example`.
4. Validate that Ollama remains reachable on the host at `127.0.0.1:11434`.
5. Start only state services first: `postgres`, `redis`, `qdrant`.
6. Start gateway and UI services next.
7. Start `registry-sync` and verify registry files and receipts appear.

## Note
This is still blueprint bootstrap. It does not widen exposure and it does not reopen GPU runtime work.

## Current status
- This bootstrap pack is template-safe and intended for adaptation into a real deployment root
- Preferred target root is `/srv/arch1/modeldock`
- Compose mounts resolve from `MODELDOCK_ROOT`
- Image tags resolve from environment variables with pinned defaults
- Validate local Docker and Ollama availability in the target environment before launch

## Immediate next action
1. Replace remaining `TODO_...` values in `.env`.
2. Pull and start only state services first.
3. Start gateway and UI services after state services are healthy.
4. Run registry sync and verify receipts and registry outputs.
