-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.25 KB
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
37
38
39
40
41
42
43
44
45
46
47
services:
open-webui:
# image: ghcr.io/open-webui/open-webui:main
build:
context: ./openwebui
dockerfile: Dockerfile
container_name: open-webui
restart: always
ports:
- "3000:8080"
volumes:
- ~/.open-webui:/root/.open-webui
- ~/.cache/huggingface:/root/.cache/huggingface
- ~/.cache/huggingface/hub:/root/.cache/huggingface/hub
- open-webui:/app/backend/data
- ~/.ollama/models:/root/.ollama/models
- ollama:/root/.ollama
networks:
- model-hub # when inspecting, will be deepseek_model-hub
environment:
OLLAMA_API_BASE_URL: "http://ollama:11434"
HF_HUB_OFFLINE: "1"
OFFLINE_MODE: "true"
DATA_DIR: "/root/.open-webui"
HF_HOME: "/root/.cache/huggingface"
extra_hosts:
- "host.docker.internal:host-gateway"
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: always
ports:
- "11434:11434"
healthcheck:
test: ollama --version || exit 1
command: serve
volumes:
- ollama:/root/.ollama
networks:
- model-hub # when inspecting, will be deepseek_model-hub
volumes:
open-webui:
ollama:
networks:
model-hub: # when inspecting, will be deepseek_model-hub
driver: bridge