f04b9b3588
SLICE-01 (lead-developer): multi-stage Dockerfile (node:22-slim→python:3.12-slim), .dockerignore (excludes secrets/node_modules/.git), docker-compose.yml (port 8789, SQLite volume, env injection for all voice-service vars) SLICE-02 (backend-engineer+data-engineer): FastAPI mounts client/dist as StaticFiles at / after API routes (D-023, REQ-DEPLOY-13). G-102 MUST fix: db/store.py + db/migrate.py now read PRAXIS_DB_PATH from env so the Docker volume mount persists SQLite data. G-105 FIX: Dockerfile copies pyproject.toml before source (pip install layer cached, source changes don't invalidate). REQ-DEPLOY-01, 02, 13, 16 covered. ---ci--- project: praxis phase: 1 milestone: v0.2 status: execute slice: 01-02 wave: 1 ---/ci---
48 lines
1.9 KiB
YAML
48 lines
1.9 KiB
YAML
# Praxis v0.2 — Docker Compose service definition
|
|
# Runs the praxis server inside a Docker container (inside an LXC CT).
|
|
# Per RESEARCH.md Q4/Q8 / ARCHITECTURE.md §v0.2 Deployment Architecture.
|
|
|
|
services:
|
|
praxis:
|
|
build: .
|
|
image: praxis:latest
|
|
restart: on-failure
|
|
ports:
|
|
- "8789:8789"
|
|
volumes:
|
|
# SQLite DB persistence — survives container recreation (G-102).
|
|
- praxis-data:/app/data
|
|
environment:
|
|
PRAXIS_HOST: "0.0.0.0"
|
|
PRAXIS_PORT: "8789"
|
|
PRAXIS_DB_PATH: "/app/data/praxis.db"
|
|
PRAXIS_SCENARIOS_DIR: "/app/scenarios"
|
|
PRAXIS_TTS: "${PRAXIS_TTS:-cartesia}"
|
|
PRAXIS_SCENARIO: "${PRAXIS_SCENARIO:-customer_service_refund_ca_v01}"
|
|
# Voice-service keys (empty if unprovisioned — server degrades gracefully)
|
|
DEEPGRAM_API_KEY: "${DEEPGRAM_API_KEY:-}"
|
|
CARTESIA_API_KEY: "${CARTESIA_API_KEY:-}"
|
|
OLLAMA_API_KEY: "${OLLAMA_API_KEY:-}"
|
|
# Ollama Cloud endpoints (D-020)
|
|
OLLAMA_BASE_URL: "${OLLAMA_BASE_URL:-https://ollama.com/v1}"
|
|
OLLAMA_CHAT_URL: "${OLLAMA_CHAT_URL:-https://ollama.com/api/chat}"
|
|
OLLAMA_ROLEPLAY_MODEL: "${OLLAMA_ROLEPLAY_MODEL:-gemma4:cloud}"
|
|
OLLAMA_DEBRIEF_MODEL: "${OLLAMA_DEBRIEF_MODEL:-deepseek-v4-flash:cloud}"
|
|
# Deepgram (D-013)
|
|
DEEPGRAM_MODEL: "${DEEPGRAM_MODEL:-nova-3}"
|
|
DEEPGRAM_LANGUAGE: "${DEEPGRAM_LANGUAGE:-en}"
|
|
DEEPGRAM_REGION: "${DEEPGRAM_REGION:-na}"
|
|
# Cartesia (D-014)
|
|
CARTESIA_VOICE_ID: "${CARTESIA_VOICE_ID:-a3536a36-1d18-4efb-a95a-7c44b7b5e384}"
|
|
env_file:
|
|
# /etc/praxis/server.env is written by install-service.sh with
|
|
# secrets injected via lxc.environment (G-101 fix: GITEA_TOKEN baked
|
|
# into the snippet; voice keys from lxc.environment).
|
|
- /etc/praxis/server.env
|
|
restart_policy:
|
|
condition: on-failure
|
|
max_attempts: 3
|
|
|
|
volumes:
|
|
praxis-data:
|
|
driver: local |