-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 1.03 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
version: '3.8'
services:
# Combined Go Backend + Nginx Frontend
app:
build:
context: .
dockerfile: docker/Dockerfile
container_name: mairchen-go
environment:
- AI_PROVIDER=${AI_PROVIDER:-openai}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-https://api.mistral.ai/v1}
- OPENAI_MODEL=${OPENAI_MODEL:-mistral-small-latest}
- OLLAMA_API_KEY=${OLLAMA_API_KEY}
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL}
- OLLAMA_MODEL=${OLLAMA_MODEL}
- RATE_LIMIT_PER_IP=${RATE_LIMIT_PER_IP:-10}
- GLOBAL_DAILY_LIMIT=${GLOBAL_DAILY_LIMIT:-1000}
- MAX_STORY_LENGTH=${MAX_STORY_LENGTH:-15}
- MAX_DAILY_COST=${MAX_DAILY_COST:-5.0}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-http://localhost}
- PORT=8000
ports:
- "80:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3