-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 815 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
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
volumes:
- ./:/app
ports:
- "8501:8501"
environment:
- PYTHONUNBUFFERED=1
command: /bin/sh -c "python3 database_operations.py && streamlit run app.py --server.fileWatcherType poll"
depends_on:
- ollama
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- /path/to/ollama/models:/root/.ollama # Update with the path to your ollama model storage
environment:
- OLLAMA_LOAD_TIMEOUT=15m # increase if you get a Timeout Error
# remove deploy and runtime if you are not using a GPU
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]