add healthcheck
This commit is contained in:
parent
ccba45f5a5
commit
564abf959a
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user