« Open WebUI » : différence entre les versions
De Le Wiki de Lug
Autres actions
| Ligne 24 : | Ligne 24 : | ||
# rc-service docker start | # rc-service docker start | ||
* On installe le service : | * On installe le service : | ||
# mkdir /opt/openwebui | # mkdir -p /opt/openwebui | ||
Le fichier docker-compose : | Le fichier docker-compose : | ||
# vi /opt/openwebui/docker-compose.yml | # vi /opt/openwebui/docker-compose.yml | ||
| Ligne 49 : | Ligne 49 : | ||
volumes: | volumes: | ||
openwebui_data: | openwebui_data: | ||
Pour | (Optionnel) Pour connecter automatiquement Hermes : | ||
# vi /opt/openwebui/.env | # vi /opt/openwebui/.env | ||
OPENAI_API_BASE_URL=http://<font color = blue>IP_HERMES</font>:<font color = green>8642</font>/v1 | OPENAI_API_BASE_URL=http://<font color = blue>IP_HERMES</font>:<font color = green>8642</font>/v1 | ||
OPENAI_API_KEY=<font color = blue>maclefsecrete</font> | OPENAI_API_KEY=<font color = blue>maclefsecrete</font> | ||
On crée le conteneur : | |||
# docker compose -f /opt/openwebui/docker-compose.yml --project-directory /opt/openwebui up -d | |||
* Accéder à l'interface : | |||
http://<font color = blue>IP_LXC</font>:3000 | |||
Version du 24 avril 2026 à 08:41
Prérequis
Pour une utilisation de base :
- si Alpine LXC : avec Nesting et keyctl activé (Docker).
- RAM :
- 2 Go → minimum
- 4 Go → recommandé
- 8 Go → confortable
- CPU / vCPU :
- 1 vCPU → suffisant
- 2 vCPU → recommandé
- Espace disque :
- 5 Go → minimum (test uniquement)
- 10 Go → utilisable
- 20 Go → confortable
Installation
- On installe docker (Alpine) :
# apk update && apk upgrade # apk add docker docker-cli-compose curl # rc-update add docker default # rc-service docker start
- On installe le service :
# mkdir -p /opt/openwebui
Le fichier docker-compose :
# vi /opt/openwebui/docker-compose.yml
version: "3.8"
services:
openwebui:
image: ghcr.io/open-webui/open-webui:main
container_name: openwebui
restart: unless-stopped
ports:
- "3000:8080"
environment:
- OPENAI_API_BASE_URL=${OPENAI_API_BASE_URL}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- AIOHTTP_CLIENT_TIMEOUT_MODEL_LIST=30
volumes:
- openwebui_data:/app/backend/data
volumes:
openwebui_data:
(Optionnel) Pour connecter automatiquement Hermes :
# vi /opt/openwebui/.env
OPENAI_API_BASE_URL=http://IP_HERMES:8642/v1 OPENAI_API_KEY=maclefsecrete
On crée le conteneur :
# docker compose -f /opt/openwebui/docker-compose.yml --project-directory /opt/openwebui up -d
- Accéder à l'interface :
http://IP_LXC:3000