-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (64 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
67 lines (64 loc) · 2.13 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
# Deep Research Agent - Docker Compose
#
# Quick Start:
# 1. Copy .env.example to .env and add your API keys
# 2. Run: docker-compose up
# 3. Access UI: http://localhost:8080
# 4. Execute research via API or UI
#
# Required API Keys (set in .env):
# - OPENROUTER_API_KEY: For LLM inference (https://openrouter.ai/keys)
# OR use local Ollama: set OLLAMA_BASE_URL and DEFAULT_MODEL=ollama/<model>
# - At least ONE search provider: JINA_API_KEY, TAVILY_API_KEY, FIRECRAWL_API_KEY, or SERPER_API_KEY
services:
# Agent Field Control Plane
agentfield:
image: agentfield/control-plane:latest
container_name: agentfield-server
ports:
- "8080:8080"
environment:
- AGENTFIELD_HTTP_ADDR=0.0.0.0:8080
- AGENTFIELD_STORAGE_MODE=local
volumes:
- agentfield-data:/data
restart: unless-stopped
# Deep Research Agent
deep-research:
build:
context: .
dockerfile: Dockerfile
container_name: deep-research-agent
environment:
# Agent Field connection
- AGENTFIELD_SERVER=http://agentfield:8080
- PORT=8001
# Callback URL for control plane to reach this agent
- AGENT_CALLBACK_URL=http://deep-research:8001
# LLM API Key (from .env file)
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
# Web Search API Keys (configure at least one)
- JINA_API_KEY=${JINA_API_KEY:-}
- TAVILY_API_KEY=${TAVILY_API_KEY:-}
- FIRECRAWL_API_KEY=${FIRECRAWL_API_KEY:-}
- SERPER_API_KEY=${SERPER_API_KEY:-}
# Optional: Force specific search provider
- SEARCH_PROVIDER=${SEARCH_PROVIDER:-}
# Model configuration
- DEFAULT_MODEL=${DEFAULT_MODEL:-openrouter/deepseek/deepseek-chat-v3.1}
- TEMPERATURE=${TEMPERATURE:-0.6}
# Optional: Local Ollama configuration (set OLLAMA_BASE_URL to use local LLM)
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-}
ports:
- "8001:8001"
depends_on:
- agentfield
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
restart: unless-stopped
volumes:
agentfield-data: