Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (108 loc) · 3.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
113 lines (108 loc) · 3.8 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
# ── Redis (DeerFlow SSE stream bridge) ──────────────────────────────────
redis:
image: redis:7-alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- deerflow_redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
networks:
- awaken
restart: unless-stopped
# ── DeerFlow 2.0 Gateway (AI Agent Engine) ──────────────────────────────
deerflow:
build:
context: ./deer-flow
dockerfile: backend/Dockerfile
environment:
DEER_FLOW_AUTH_DISABLED: "1"
CI: "true"
DEER_FLOW_PROJECT_ROOT: /app
DEER_FLOW_HOME: /app/backend/.deer-flow
DEER_FLOW_CONFIG_PATH: /app/backend/config.yaml
DEER_FLOW_EXTENSIONS_CONFIG_PATH: /app/backend/extensions_config.json
DEER_FLOW_STREAM_BRIDGE_REDIS_URL: redis://redis:6379/0
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY:-}
LANGSMITH_TRACING: "false"
volumes:
- ./docker/deerflow/config.yaml:/app/backend/config.yaml:ro
- ./docker/deerflow/extensions_config.json:/app/backend/extensions_config.json:ro
- ./deer-flow/skills:/app/skills:ro
- deerflow_data:/app/backend/.deer-flow
working_dir: /app
command: >
sh -c "cd backend && PYTHONPATH=. uv run --no-sync uvicorn app.gateway.app:app
--host 0.0.0.0 --port 8001"
depends_on:
redis:
condition: service_healthy
networks:
- awaken
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8001/api/health', timeout=3)"]
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
# ── Awaken Backend (FastAPI) ────────────────────────────────────────────
backend:
build:
context: .
dockerfile: backend/Dockerfile
environment:
APP_ENV: docker
DEBUG: "false"
DATABASE_URL: sqlite:///./data/awaken.db
AUTH_SECRET_KEY: ${AUTH_SECRET_KEY:-awaken-dev-secret-change-me}
AUTH_LEGACY_USER_DEFAULT_PASSWORD: ${AUTH_LEGACY_USER_DEFAULT_PASSWORD:-AwakenLegacy123!}
SMTP_ENABLED: ${SMTP_ENABLED:-false}
SMTP_HOST: ${SMTP_HOST:-smtp.qq.com}
SMTP_PORT: ${SMTP_PORT:-465}
SMTP_USER: ${SMTP_USER:-}
SMTP_PASSWORD: ${SMTP_PASSWORD:-}
SMTP_FROM: ${SMTP_FROM:-}
FEISHU_ENABLED: ${FEISHU_ENABLED:-false}
FEISHU_WEBHOOK_REGISTER: ${FEISHU_WEBHOOK_REGISTER:-}
FEISHU_WEBHOOK_TASK_COMPLETE: ${FEISHU_WEBHOOK_TASK_COMPLETE:-}
DEERFLOW_ENABLED: "true"
DEERFLOW_BASE_URL: http://deerflow:8001
DEERFLOW_ASSISTANT_ID: lead_agent
DEERFLOW_API_KEY: ""
DEERFLOW_CONTROL_TIMEOUT_SECONDS: ${DEERFLOW_CONTROL_TIMEOUT_SECONDS:-60}
XIAOHAI_UNLOCK_AFTER_TURNS: ${XIAOHAI_UNLOCK_AFTER_TURNS:-3}
FRONTEND_URL: ${FRONTEND_URL:-http://localhost:7777}
BACKEND_CORS_ORIGINS: '["http://localhost:7777","http://127.0.0.1:7777"]'
ports:
- "8000:8000"
volumes:
- awaken_backend_data:/app/data
depends_on:
deerflow:
condition: service_healthy
networks:
- awaken
restart: unless-stopped
# ── Awaken Frontend (Nginx + React SPA) ─────────────────────────────────
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
depends_on:
- backend
ports:
- "7777:80"
networks:
- awaken
restart: unless-stopped
volumes:
awaken_backend_data:
deerflow_redis_data:
deerflow_data:
networks:
awaken:
driver: bridge