-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
55 lines (52 loc) · 1.52 KB
/
docker-compose.dev.yml
File metadata and controls
55 lines (52 loc) · 1.52 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
name: webagent-dev
services:
backend:
image: python:3.12-slim
working_dir: /app/backend
command: >
sh -c "pip install --no-cache-dir -r requirements.txt &&
python run.py"
env_file:
- ./.env
environment:
APP_NAME: webagent-backend
ENV: development
LOG_LEVEL: INFO
HOST: 0.0.0.0
PORT: 8000
RELOAD: "true"
CORS_ORIGINS: '["http://localhost:5173"]'
OPENAI_MODEL: ${OPENAI_MODEL:-nemotron-30b}
OPENAI_BASE_URL: ${OPENAI_BASE_URL:-}
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
REQUIRE_AUTH: "false"
WEB_PUSH_ENABLED: ${WEB_PUSH_ENABLED:-false}
WEB_PUSH_VAPID_PUBLIC_KEY: ${WEB_PUSH_VAPID_PUBLIC_KEY:-}
WEB_PUSH_VAPID_PRIVATE_KEY: ${WEB_PUSH_VAPID_PRIVATE_KEY:-}
WEB_PUSH_VAPID_SUBJECT: ${WEB_PUSH_VAPID_SUBJECT:-mailto:admin@example.com}
COMPACTION_TRIGGER_TOTAL_TOKENS: "64000"
COMPACTION_TARGET_TOTAL_TOKENS: "24000"
volumes:
- ./backend:/app/backend
- backend_pip_cache:/root/.cache/pip
ports:
- "8000:8000"
frontend:
image: node:20-alpine
working_dir: /app/frontend
command: >
sh -c "npm install &&
npm run dev -- --host 0.0.0.0 --port 5173"
environment:
VITE_BACKEND_URL: http://backend:8000
CHOKIDAR_USEPOLLING: "true"
volumes:
- ./frontend:/app/frontend
- frontend_node_modules:/app/frontend/node_modules
ports:
- "5173:5173"
depends_on:
- backend
volumes:
backend_pip_cache:
frontend_node_modules: