-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 842 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 842 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
# Docker compose file for Ollama using persistent volume
services:
ollama:
container_name: ollama_container
image: ollama/ollama:latest
restart: always
ports:
- '11434:11434'
volumes:
- ollama_data:/root/.ollama
redis:
image: "redis:alpine" # Lightweight Redis image
container_name: "redis_container"
ports:
- "6379:6379" # Expose Redis port to localhost
restart: always
volumes:
- redis_data:/data # Persist Redis data
volumes:
ollama_data:
driver: local
driver_opts:
type: "none"
o: "bind"
device: "C:/Docker/Volumes/Ollama/data" # Change this to your own physical path
redis_data:
driver: local
driver_opts:
type: "none"
o: "bind"
device: "C:/Docker/Volumes/Redis/data" # Change this to your own physical path