-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathdocker-compose.yml
32 lines (31 loc) · 941 Bytes
/
docker-compose.yml
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
name: vision-parse
services:
vision-parse:
build:
context: .
dockerfile: Dockerfile
args:
- MODEL_NAME=${MODEL_NAME:?MODEL_NAME is required}
environment:
- MODEL_NAME=${MODEL_NAME:?MODEL_NAME is required}
- OPENAI_API_KEY=${OPENAI_API_KEY:-} # Optional: For OpenAI models
- GEMINI_API_KEY=${GEMINI_API_KEY:-} # Optional: For Gemini models
volumes:
- .:/app
working_dir: /app
tty: true
stdin_open: true
ports:
- "11434:11434" # Expose Ollama port
deploy:
resources:
limits:
memory: 16G # Set memory limit to 16GB
reservations:
memory: 8G # Guarantee at least 8GB
# Uncomment below lines if you have NVIDIA GPU available
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
command: tail -f /dev/null # Keep container running