-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstack.yml
More file actions
29 lines (28 loc) · 876 Bytes
/
stack.yml
File metadata and controls
29 lines (28 loc) · 876 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
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
# "host" network mode is recommended for CPU inference performance
# and simplifies access.
network_mode: host
volumes:
- ./ollama_data:/root/.ollama
environment:
# This allows Ollama to listen on all interfaces, not just localhost.
# CRITICAL for accessing it from your external PyCharm IDE.
- OLLAMA_HOST=0.0.0.0
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
restart: unless-stopped
network_mode: host
environment:
# Since we are using host networking, we point to localhost
- OLLAMA_BASE_URL=http://localhost:11434
# WebUI will run on port 8080
- PORT=8080
volumes:
- ./webui_data:/app/backend/data
depends_on:
- ollama