9ca770962f
Hardening pass over the quickstart repo to make it match the actual d0a1.es stack and remove long-standing drift. - README: align with 8 GB RAM reality across all sections, add explicit security warning on WEBUI_AUTH=false, remove dead link to d0a1.es/vps, drop stack services not part of d0a1.es (n8n, WordPress, Qdrant). Re-point the d0a1 section to the services that actually run at git/mail/app.d0a1.es. - docker-compose: move all tunables (ports, default model, auth, secret key, keep-alive) to .env with sensible defaults. Add commented GPU passthrough block for NVIDIA hosts. - deploy.sh: pre-flight checks (docker, compose, daemon), copy .env.example on first run, auto-detect system RAM on Linux and macOS and warn on sub-8 GB hosts. - Add .env.example documenting every variable and required RAM per model. - Add MIT LICENSE (was promised in README but missing). - Add .gitignore (local .env, editor cruft, OS junk). - .gitattributes: use a single rule (text=auto eol=lf) to cover every text file, not just *.sh - fixes CRLF warnings on new text files on Windows checkouts. Refs: d0a1/quickstart rename (companion: new repo at git.d0a1.es/d0a1/quickstart).
40 lines
1023 B
YAML
40 lines
1023 B
YAML
services:
|
|
ollama:
|
|
image: ollama/ollama:latest
|
|
container_name: d0a1-ollama
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${OLLAMA_PORT:-11434}:11434"
|
|
volumes:
|
|
- ollama_data:/root/.ollama
|
|
environment:
|
|
- OLLAMA_KEEP_ALIVE=${OLLAMA_KEEP_ALIVE:-5m}
|
|
# GPU passthrough: descomenta la sección deploy si tienes GPU NVIDIA
|
|
# deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: all
|
|
# capabilities: [gpu]
|
|
|
|
open-webui:
|
|
image: ghcr.io/open-webui/open-webui:main
|
|
container_name: d0a1-open-webui
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${WEBUI_PORT:-3000}:8080"
|
|
volumes:
|
|
- open_webui_data:/app/backend/data
|
|
environment:
|
|
- OLLAMA_BASE_URL=http://ollama:11434
|
|
- WEBUI_AUTH=${WEBUI_AUTH:-true}
|
|
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-}
|
|
- DEFAULT_MODELS=${DEFAULT_MODEL:-llama3.2:3b}
|
|
depends_on:
|
|
- ollama
|
|
|
|
volumes:
|
|
ollama_data:
|
|
open_webui_data:
|