-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.09 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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- GEMINI_API_KEY=${GEMINI_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OLLAMA_HOST=${OLLAMA_HOST:-http://localhost:11434}
- OLLAMA_MODEL=${OLLAMA_MODEL:-llava}
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4o-mini}
- ANTHROPIC_MODEL=${ANTHROPIC_MODEL:-claude-3-5-sonnet-20241022}
- AI_SERVICE=${AI_SERVICE:-gemini}
ports:
- "8080:80"
depends_on:
backend:
condition: service_healthy
environment:
- NODE_ENV=production
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- billscan-data:/data
environment:
- NODE_ENV=production
- DATA_DIR=/data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/bills"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
restart: unless-stopped
volumes:
billscan-data: