-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local-llm.yml
More file actions
39 lines (36 loc) 路 908 Bytes
/
Copy pathdocker-compose.local-llm.yml
File metadata and controls
39 lines (36 loc) 路 908 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
35
36
37
38
39
version: '3.8'
services:
form-flow-local:
build:
context: ./form-flow-backend
dockerfile: Dockerfile.local-llm
ports:
- "8000:8000"
environment:
- DATABASE_URL=sqlite:///./sql_app.db
- SECRET_KEY=your_secret_key_here
- ALGORITHM=HS256
- ACCESS_TOKEN_EXPIRE_MINUTES=30
# Optional: Add Gemini API key for fallback
# - GOOGLE_API_KEY=your_gemini_key_here
volumes:
- ./models:/app/models # Cache models locally
- ./data:/app/data # Persist database
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: unless-stopped
# Optional: Redis for caching
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
redis_data: