-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.69 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
services:
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: budget
POSTGRES_PASSWORD: budget
POSTGRES_DB: budget
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backend/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U budget"]
interval: 5s
timeout: 5s
retries: 10
backend:
build: ./backend
environment:
DATABASE_URL: postgresql+psycopg://budget:budget@postgres:5432/budget
ENABLE_SCHEDULER: "1" # daily Plaid sync at 06:00 — opt-in, see app/main.py
OLLAMA_URL: http://host.docker.internal:11434
EMBEDDING_MODEL: mxbai-embed-large
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
PLAID_CLIENT_ID: ${PLAID_CLIENT_ID:-}
PLAID_SECRET: ${PLAID_SECRET:-}
PLAID_ENV: ${PLAID_ENV:-sandbox}
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8080:8000"
depends_on:
postgres:
condition: service_healthy
volumes:
- ./backend:/app
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
frontend:
build: ./frontend
ports:
- "5174:5173"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
VITE_API_URL: http://localhost:8080
command: npm run dev -- --host 0.0.0.0
mcp:
build: ./mcp
environment:
BUDGET_API_URL: http://backend:8000
MCP_AUTH_TOKEN: ${MCP_AUTH_TOKEN:-}
MCP_HOST: 0.0.0.0
MCP_PORT: 9000
ports:
- "9000:9000"
depends_on:
- backend
volumes:
- ./mcp:/app
command: python server.py
volumes:
postgres_data: