-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
86 lines (82 loc) · 3.01 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
86 lines (82 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
backend:
build:
context: .
dockerfile: services/backend/Dockerfile
environment:
BACKEND_ENVIRONMENT: development
MCP_TOKEN_VAULT_PROVIDER: local
# Global "Continue with Google" OIDC provider (optional; provider id
# "google" is advertised on /v1/auth/providers only when set).
GOOGLE_OAUTH_CLIENT_ID: ${GOOGLE_OAUTH_CLIENT_ID:-}
GOOGLE_OAUTH_CLIENT_SECRET: ${GOOGLE_OAUTH_CLIENT_SECRET:-}
ports:
- "8100:8100"
ai-backend:
build:
context: .
dockerfile: services/ai-backend/Dockerfile
environment:
RUNTIME_ENVIRONMENT: development
RUNTIME_STORE_BACKEND: in_memory
RUNTIME_START_IN_PROCESS_WORKER: "true"
MCP_BACKEND_REGISTRY_URL: http://backend:8100
SKILLS_BACKEND_REGISTRY_URL: http://backend:8100
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
GOOGLE_API_KEY: ${GOOGLE_API_KEY:-}
# Local models (Ollama) — OFF by default, no file edit needed to flip:
# LOCAL_MODELS_ENABLED=true make docker-dev
# On, /v1/local-models/* is live, so Settings -> Local models and the
# first-run "Download the local model" card can be exercised here instead
# of only in a staged desktop boot. Needs Ollama running on the HOST; on
# Linux also add to this service:
# extra_hosts: ["host.docker.internal:host-gateway"]
RUNTIME_ENABLE_LOCAL_MODELS: ${LOCAL_MODELS_ENABLED:-false}
OLLAMA_BASE_URL: ${OLLAMA_BASE_URL:-http://host.docker.internal:11434/v1}
# Runtime management (detect the Ollama binary + spawn it) is pinned off:
# ai-backend is a container here and OLLAMA_BASE_URL points at the host,
# so it can neither see nor usefully spawn the host's binary — /status
# honestly reports runtime_state "unknown". Consequence for developers:
# this stack reaches the "installed / downloading" card states but NOT
# "not installed" / "stopped". For those, run ai-backend natively via
# `make dev` with RUNTIME_LOCAL_MODELS_MANAGE_RUNTIME=true in
# services/ai-backend/.env (see services/ai-backend/env_example).
RUNTIME_LOCAL_MODELS_MANAGE_RUNTIME: "false"
ports:
- "8000:8000"
depends_on:
- backend
backend-facade:
build:
context: .
dockerfile: services/backend-facade/Dockerfile
environment:
FACADE_ENVIRONMENT: development
DEV_AUTH_BYPASS: "true"
FACADE_DEV_ORG_ID: org_123
FACADE_DEV_USER_ID: user_123
BACKEND_URL: http://backend:8100
AI_BACKEND_URL: http://ai-backend:8000
ports:
- "8200:8200"
depends_on:
- backend
- ai-backend
frontend:
build:
context: .
dockerfile: apps/frontend/Dockerfile
expose:
- "8080"
depends_on:
- backend-facade
dev-gateway:
image: nginx:1.29-alpine
volumes:
- ./infra/docker/dev-gateway.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "8080:8080"
depends_on:
- frontend
- backend-facade