-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (74 loc) · 2.53 KB
/
docker-compose.yml
File metadata and controls
76 lines (74 loc) · 2.53 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
# MarketPulse Docker Compose
# Production deployment for Tencent Cloud
services:
# ChromaDB - Vector database for RAG
chromadb:
image: chromadb/chroma:latest
container_name: marketpulse-chromadb
restart: unless-stopped
volumes:
- ./data/chroma:/chroma/chroma
ports:
- "127.0.0.1:8000:8000"
environment:
- IS_PERSISTENT=TRUE
- ANONYMIZED_TELEMETRY=FALSE
healthcheck:
test: ["CMD-SHELL", "bash -c 'echo > /dev/tcp/localhost/8000'"]
interval: 10s
timeout: 5s
start_period: 10s
retries: 3
# MarketPulse Server
server:
build:
context: .
dockerfile: Dockerfile
container_name: marketpulse-server
restart: unless-stopped
depends_on:
chromadb:
condition: service_healthy
volumes:
# SQLite database persistence
- ./data/core:/app/packages/core/data
# Knowledge base (read-only)
- ./packages/core/data/knowledge:/app/packages/core/data/knowledge:ro
# Playwright browsers (persistent storage for downloads)
- ./data/playwright:/root/.cache/ms-playwright
ports:
- "127.0.0.1:3000:3000"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# ChromaDB connection (use service name)
- CHROMA_HOST=http://chromadb:8000
# vLLM connection (via FRP tunnel)
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-http://124.220.94.170:1995}
- OPENAI_MODEL_NAME=${OPENAI_MODEL_NAME:-qwen3-8b}
- OPENAI_API_KEY=${OPENAI_API_KEY:-any-value}
# Optional providers
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-}
# News API
- FINNHUB_API_KEY=${FINNHUB_API_KEY:-}
# Twitter Scraper
- TWITTER_AUTH_TOKEN=${TWITTER_AUTH_TOKEN:-}
- TWITTER_SEARCH_QUERIES=${TWITTER_SEARCH_QUERIES:-BTC,ETH,crypto}
- TWITTER_SCRAPE_INTERVAL=${TWITTER_SCRAPE_INTERVAL:-30}
- TWITTER_MAX_TWEETS_PER_QUERY=${TWITTER_MAX_TWEETS_PER_QUERY:-100}
- TWITTER_SCRAPE_ON_STARTUP=${TWITTER_SCRAPE_ON_STARTUP:-false}
# Server config
- PORT=3000
- HOST=0.0.0.0
# Proxy for external requests (Binance, Twitter, etc.)
- HTTP_PROXY=http://host.docker.internal:7890
- HTTPS_PROXY=http://host.docker.internal:7890
# Exclude internal Docker network from proxy
- NO_PROXY=localhost,127.0.0.1,chromadb,host.docker.internal
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
start_period: 30s
retries: 3