Skip to content

Commit b370f34

Browse files
committed
Added docker compose for ollama and open webui
1 parent 7e9761e commit b370f34

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
services:
2+
ollama:
3+
image: ollama/ollama:latest
4+
container_name: ollama
5+
ports:
6+
- "11434:11434"
7+
volumes:
8+
- ollama-data:/root/.ollama
9+
deploy:
10+
resources:
11+
reservations:
12+
devices:
13+
- driver: nvidia
14+
count: all
15+
capabilities: [gpu]
16+
restart: unless-stopped
17+
18+
webui:
19+
image: ghcr.io/open-webui/open-webui:main
20+
container_name: open-webui
21+
ports:
22+
- "3000:8080"
23+
depends_on:
24+
- ollama
25+
environment:
26+
- OLLAMA_BASE_URL=http://ollama:11434
27+
- WEBUI_AUTH=False
28+
restart: unless-stopped
29+
volumes:
30+
- open-webui:/app/backend/data
31+
32+
volumes:
33+
ollama-data:
34+
name: ollama-data
35+
open-webui:
36+
name: open-webui

0 commit comments

Comments
 (0)