Files
clientsflow/compose.yaml
2026-02-19 06:24:02 +07:00

48 lines
1.4 KiB
YAML

services:
frontend:
image: node:22-bookworm-slim
working_dir: /app/Frontend
volumes:
# Mount only the app source; keep node_modules inside the container to avoid
# leaking absolute host paths into Nuxt/Nitro dev runtime.
- ./Frontend:/app/Frontend
- clientsflow_data:/app/.data
- frontend_node_modules:/app/Frontend/node_modules
- frontend_nuxt:/app/Frontend/.nuxt
- frontend_output:/app/Frontend/.output
ports:
- "3000:3000"
environment:
DATABASE_URL: "file:../../.data/clientsflow-dev.db"
REDIS_URL: "redis://redis:6379"
CF_AGENT_MODE: "langgraph"
OPENROUTER_API_KEY: "${OPENROUTER_API_KEY:-}"
OPENROUTER_BASE_URL: "https://openrouter.ai/api/v1"
OPENROUTER_MODEL: "openai/gpt-4o-mini"
OPENROUTER_HTTP_REFERER: "${OPENROUTER_HTTP_REFERER:-}"
OPENROUTER_X_TITLE: "clientsflow"
OPENROUTER_REASONING_ENABLED: "${OPENROUTER_REASONING_ENABLED:-0}"
# Set this in your shell or a compose override:
# OPENROUTER_API_KEY: "..."
# GIGACHAT_AUTH_KEY: "..." (if you use GigaChat integration)
command: >
bash -lc "
./scripts/compose-dev.sh
"
depends_on:
- redis
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
volumes:
clientsflow_data:
frontend_node_modules:
frontend_nuxt:
frontend_output:
redis_data: