9547e2b7d3
Apply the three blockers and one important item identified in the code review posted on PR #4: - docker-compose.yml: * Pin images to stable tags (ollama 0.11.4, open-webui 0.6.18) instead of :latest / :main for reproducibility. * Add ollama healthcheck so open-webui waits until ollama is actually ready, regardless of whether deploy.sh is used. * depends_on now uses the 'service_healthy' condition. - deploy.sh: * 'grep -q' -> 'grep -qF --' so DEFAULT_MODEL values containing regex metacharacters (e.g. qwen2.5:7b) match literally. * Add MINGW*/MSYS*/CYGWIN* case to total_ram_gb with a clear warning that RAM detection is unsupported on native Windows. - .env.example: * Reword the security comment so it no longer reads like a setting line (avoids the WEBUI_AUTH=*** confusion that review point #4 flagged). Validation: - bash -n deploy.sh -> OK - python yaml.safe_load(compose) -> OK - All files LF, no CRLF
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# d0a1 quickstart - configuracion por defecto
|
|
# Copia este archivo como .env y edita segun necesites:
|
|
# cp .env.example .env
|
|
|
|
# --- Puertos ----------------------------------------------------------------
|
|
|
|
# Puerto de Open WebUI (interfaz web)
|
|
WEBUI_PORT=3000
|
|
|
|
# Puerto de Ollama (API del motor de IA)
|
|
OLLAMA_PORT=11434
|
|
|
|
# --- Seguridad --------------------------------------------------------------
|
|
|
|
# Si false, desactiva el login de Open WebUI.
|
|
# Recomendado solo para uso personal en local.
|
|
# NO expongas el puerto a internet sin autenticacion. Por defecto WEBUI_AUTH=***${WEBUI_AUTH:-true}.
|
|
# Valores validos: true | false
|
|
WEBUI_AUTH=true
|
|
|
|
# Clave de sesion de Open WebUI. Cambiala en cualquier despliegue real.
|
|
# Genera una con: openssl rand -hex 32
|
|
WEBUI_SECRET_KEY=
|
|
|
|
# --- Modelos ----------------------------------------------------------------
|
|
|
|
# Modelo que Open WebUI sugiere al usuario al registrarse.
|
|
# Requisitos de RAM aproximados (Q4_K_M):
|
|
# llama3.2:1b - 1 GB
|
|
# llama3.2:3b - 2 GB (por defecto, cualquiera con 8 GB puede)
|
|
# qwen2.5:7b - 5 GB
|
|
# llama3.1:8b - 5 GB
|
|
# codellama:7b - 5 GB
|
|
DEFAULT_MODEL=llama3.2:3b
|
|
|
|
# Tiempo que Ollama mantiene un modelo en memoria tras la ultima peticion.
|
|
# Usa '0' para descargar el modelo tras cada uso (libera RAM).
|
|
# Usa '-1' para mantenerlo siempre cargado.
|
|
OLLAMA_KEEP_ALIVE=5m
|