docs(examples): compose for the minimal setup - postgres, real env, no phase notes
This commit is contained in:
@@ -39,14 +39,16 @@ a model or a user has an English default and is overridable
|
||||
## Run
|
||||
|
||||
```sh
|
||||
uv sync # python
|
||||
cd ui && bun install && cd .. # admin + panel SPA, built into ui/build
|
||||
cp examples/config.py /config/config.py
|
||||
DATABASE_URL=postgresql+psycopg://... CONFIG_PATH=/config/config.py uv run beaver-gateway
|
||||
cd examples
|
||||
CLAUDE_CODE_OAUTH_TOKEN=$(claude setup-token) docker compose up --build
|
||||
```
|
||||
|
||||
`examples/config.py` is the smallest setup that starts. The setup's own
|
||||
secrets come from `.env` (`load_dotenv` runs before the config is executed).
|
||||
`examples/config.py` is the smallest setup that starts: one agent, one
|
||||
python tool, one cron job, the built-in frontends on port 8000; the compose
|
||||
file next to it adds Postgres. Without Docker: `uv sync`, build the SPA with
|
||||
`cd ui && bun install && bun run build`, then run `uv run beaver-gateway` with
|
||||
`DATABASE_URL` and `CONFIG_PATH` set. A setup's own secrets come from `.env`
|
||||
next to its config (`load_dotenv` runs before the config is executed).
|
||||
|
||||
## Develop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user