-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (49 loc) · 1.86 KB
/
docker-compose.dev.yml
File metadata and controls
53 lines (49 loc) · 1.86 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
services:
frontend:
# Dev mode: run Vite server with live reload, and reload dependencies.
command: sh -lc "npm ci && npm run dev -- --host 0.0.0.0 --port ${FRONTEND_PORT:-3000} --strictPort"
depends_on: []
environment:
- VITE_API_URL=http://127.0.0.1:${API_PORT:-8080}
ports:
- "127.0.0.1:${FRONTEND_PORT:-3000}:${FRONTEND_PORT:-3000}"
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
api_dev:
# Dev mode: separate container so we don't flip the prod `api` between image install and editable install.
build:
context: .
dockerfile: ./docker/Dockerfile.api
target: dev
args:
PRELOAD_EMBEDDING: ${PRELOAD_EMBEDDING:-1}
EMBEDDING_MODEL: ${EMBEDDING_MODEL:-BAAI/bge-m3}
container_name: tax-gpt-lite-api-dev
env_file:
- .env
# Only run editable install once per container (re-runs if you recreate the container).
command: sh -lc "test -f /app/.editable_installed || (pip install -e /app/packages && touch /app/.editable_installed) && uvicorn orchestrator.core.app:app --reload --reload-dir /app/packages/src --host 0.0.0.0 --port 8080"
environment:
- PYTHONPATH=/app/packages/src
- CHROMA_HOST=${CHROMA_HOST:-chroma}
- CHROMA_PORT=${CHROMA_PORT:-8000}
- NEO4J_URI=${NEO4J_URI:-bolt://neo4j:7687}
- NEO4J_USERNAME=${NEO4J_USERNAME:-neo4j}
- NEO4J_PASSWORD=${NEO4J_PASSWORD:-neo4jtest}
- EMBEDDING_MODEL=${EMBEDDING_MODEL:-BAAI/bge-m3}
- EMBEDDING_CACHE_DIR=/opt/embedding_cache
ports:
- "127.0.0.1:${API_PORT:-8080}:${API_PORT:-8080}"
volumes:
- ./packages:/app/packages
- ./data:/app/data
neo4j:
ports:
- "127.0.0.1:7474:7474" # Web UI
- "127.0.0.1:7687:7687" # Bolt
chroma:
ports:
- "127.0.0.1:8000:8000" # Chroma API
volumes:
frontend_node_modules: