Compare commits

...

2 Commits
main ... garage

Author SHA1 Message Date
564abf959a add healthcheck 2025-02-07 13:48:17 +01:00
ccba45f5a5 add script to build and build docker image with garage static assets 2025-02-07 13:37:19 +01:00
7 changed files with 22 additions and 2 deletions

View File

@ -36,7 +36,7 @@ Renseigner les variables d'environnement dans le docker-compose.yml:
- "OAUTH_SCOPES=openid profile email"
```
### GPU USE
### GPU USE :video_game:
- Installer NVIDIA container toolkit:
```bash

BIN
assets/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
assets/static/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
assets/static/splash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

9
build-openwebui.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
git clone https://github.com/open-webui/open-webui.git
cp -r assets/* open-webui/static/
cd open-webui
docker build -t dockerregistry.legaragenumerique.fr/openwebui:latest
docker push dockerregistry.legaragenumerique.fr/openwebui:latest
echo "image build et pushed"

View File

@ -1,7 +1,7 @@
services:
web-ui:
image: ghcr.io/open-webui/open-webui:main
image: dockerregistry.legaragenumerique.fr/openwebui:latest
container_name: open-webui
restart: always
ports:
@ -34,6 +34,11 @@ services:
- "OPENID_PROVIDER_URL=https://keycloak/auth/realms/realm/.well-known/openid-configuration"
- "OAUTH_PROVIDER_NAME=keycloak"
- "OAUTH_SCOPES=openid profile email"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
ollama:
image: ollama/ollama
@ -43,6 +48,12 @@ services:
- 11434:11434
volumes:
- ./ollama:/root/.ollama
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/health"]
interval: 30s
timeout: 10s
retries: 3
# GPU USE
# deploy: