add healthcheck

This commit is contained in:
Grégory Lebreton 2025-02-07 13:48:17 +01:00
parent ccba45f5a5
commit 564abf959a
2 changed files with 12 additions and 1 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

View File

@ -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: