-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 1.2 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
version: '3.8'
services:
booklore-recs:
platform: linux/amd64
build: .
container_name: booklore-recommendations
ports:
- "3000:3000"
environment:
# BookLore API Configuration
- BOOKLORE_USERNAME=${BOOKLORE_USERNAME}
- BOOKLORE_PASSWORD=${BOOKLORE_PASSWORD}
- BOOKLORE_API_URL=${BOOKLORE_API_URL:-https://api.booklore.app}
# AI Provider Configuration (choose one)
- DEFAULT_AI_PROVIDER=${DEFAULT_AI_PROVIDER:-anthropic}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
# Optional Configuration
- AI_TEMPERATURE=${AI_TEMPERATURE:-0.7}
- MAX_RECOMMENDATIONS=${MAX_RECOMMENDATIONS:-5}
- DEBUG=${DEBUG:-false}
# Web Server Configuration
- PORT=${PORT:-3000}
- NODE_ENV=production
- SESSION_SECRET=${SESSION_SECRET:-change-this-in-production}
volumes:
- ./data:/usr/src/app/data
env_file:
- .env
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s