-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (41 loc) · 1.17 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
version: '3.8'
services:
minimal-agent:
build: .
ports:
- "8000:8000"
volumes:
- ./data:/app/data
- ./config.json:/app/config.json
environment:
# Ollama settings (if using Ollama in another container)
- OLLAMA_URL=http://ollama:11434
- OLLAMA_MODEL=llama3:latest
# OpenAI settings (set these in .env file)
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-3.5-turbo}
# DeepSeek settings (set these in .env file)
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
- DEEPSEEK_URL=${DEEPSEEK_URL:-https://api.deepseek.com}
- DEEPSEEK_MODEL=${DEEPSEEK_MODEL:-deepseek-chat}
restart: unless-stopped
# Optional: Ollama service for local LLM
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama-data:/root/.ollama
environment:
- OLLAMA_KEEP_ALIVE=5m
restart: unless-stopped
# Uncomment to enable GPU support
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
volumes:
ollama-data: