-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 1021 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 1021 Bytes
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
version: '3.8'
services:
aios:
build: .
ports:
- "${PORT:-3000}:3000"
environment:
- NODE_ENV=production
- PORT=3000
- JWT_SECRET=${JWT_SECRET:-change-this-in-production}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
- OLLAMA_HOST=${OLLAMA_HOST:-http://host.docker.internal:11434}
- LM_STUDIO_HOST=${LM_STUDIO_HOST:-http://host.docker.internal:1234}
- DEFAULT_PROVIDER=${DEFAULT_PROVIDER:-ollama}
- FALLBACK_CHAIN=${FALLBACK_CHAIN:-ollama,openai}
volumes:
- aios-data:/app/data
- aios-memory:/app/memory
- aios-uploads:/app/public/uploads
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3000/health').then(r=>{if(!r.ok)throw 1}).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
aios-data:
aios-memory:
aios-uploads: