-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.16 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
version: '3.8'
services:
agent-api:
image: ghcr.io/waynefp/agent_test:latest
container_name: agent-test-v2
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Required: Set your Anthropic API key
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
# Optional: Perplexity API key for web search
- PERPLEXITY_API_KEY=${PERPLEXITY_API_KEY:-}
# Port configuration
- PORT=3000
# Node environment
- NODE_ENV=production
# Health check
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
# Resource limits (optional - adjust based on your VPS)
deploy:
resources:
limits:
cpus: '1.0'
memory: 1G
reservations:
cpus: '0.25'
memory: 256M
# Volumes for file persistence
volumes:
- agent-workspace:/app/workspace
# Logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Define named volumes
volumes:
agent-workspace:
driver: local