-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 1.01 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
services:
open-webui:
image: ghcr.io/open-webui/open-webui:v0.8.10
container_name: open-webui
ports:
# Port 3000 chosen to avoid conflicts with dev server on 8080
# Change via WEBUI_PORT in .env if needed
- "${WEBUI_PORT:-3000}:8080"
environment:
# Critical: 172.17.0.1 is Docker bridge gateway IP (not localhost!)
# Container can't reach host's 127.0.0.1 — bridge gateway is required
# Override via OLLAMA_BASE_URL in .env if Ollama runs on different host
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://172.17.0.1:11434}
volumes:
# Named volume for chat history — easier to backup than bind mount
# Backup: make backup
- open-webui:/app/backend/data
# No restart policy = battery optimization
# Measured: ~25% daily battery savings on EliteBook vs always-on
restart: "no"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
open-webui: