-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.cuda.yml
More file actions
36 lines (35 loc) · 939 Bytes
/
docker-compose.cuda.yml
File metadata and controls
36 lines (35 loc) · 939 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
version: '3.8'
services:
llama-cpp-studio:
build:
context: .
pull: true
ports:
- "8080:8080"
- "2000:2000"
volumes:
- ./data:/app/data
environment:
- CUDA_VISIBLE_DEVICES=all
- HF_HUB_ENABLE_HF_TRANSFER=1
- HF_HOME=/app/data/hf-cache
- HUGGINGFACE_HUB_CACHE=/app/data/hf-cache/hub
- RELOAD=false
# Uncomment and set your HuggingFace API key to enable model search and download
# - HUGGINGFACE_API_KEY=your_huggingface_token_here
# Alternative: Use .env file for environment variables
# env_file:
# - .env
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/status"]
interval: 30s
timeout: 10s
retries: 3