chore(api): bundle canon log schemas into image; repo-root build context
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
# Local dev — run the proxy in Docker with live reload.
|
||||
# docker compose up --build
|
||||
# Build context is the repo root so docs/schemas is available to the image.
|
||||
# Ollama runs on the homelab (charter §4), not here — point OLLAMA_BASE_URL at it.
|
||||
services:
|
||||
api:
|
||||
build: ./api
|
||||
build:
|
||||
context: .
|
||||
dockerfile: api/Dockerfile
|
||||
ports:
|
||||
- "8000:8000"
|
||||
env_file:
|
||||
- ./api/.env
|
||||
environment:
|
||||
PORT: 8000
|
||||
# Mount source + reload so edits are live without a rebuild.
|
||||
# Mount source + schemas so edits are live without a rebuild.
|
||||
volumes:
|
||||
- ./api/app:/app/app:ro
|
||||
- ./docs/schemas:/app/schemas:ro
|
||||
command: >
|
||||
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
||||
|
||||
Reference in New Issue
Block a user