-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (42 loc) · 1.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (42 loc) · 1.48 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
version: '3.8'
services:
openbb-app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8001:8001"
- "4096:4096"
- "8899:8899"
- "8787:8787"
volumes:
- .:/app
- /app/.venv
# Bind-mount the host's `.env` into the vibe-trading package's
# `src/agent/.env` slot so vibe-trading (CLI / serve / MCP) auto-loads
# the same configuration the rest of openbb-app uses. Mounting a
# single file (instead of env_file) preserves comments, quoting,
# and the exact same on-disk file vibe-trading would otherwise
# expect. Skip with `- ./:/app/.env-missing` style comment if you
# want to fall back to environment variables only.
- ./.env:/home/appuser/.vibe-trading/.env:ro
# Bind-mount Vibe-Trading source code for development
- ../Vibe-Trading:/opt/vibe-trading
# Bind-mount workspace-mcp source code for development
- ../workspace-mcp:/opt/workspace-mcp
environment:
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- TUSHARE_API_KEY=${TUSHARE_API_KEY:-}
- AGENT_HOST_URL=${AGENT_HOST_URL:-}
- APP_API_KEY=${APP_API_KEY:-}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8001/api/openapi.json && curl -f http://localhost:4096/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped