Add healthchecks to backend services
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m58s

- Add healthcheck to backend service
- Add healthcheck to backend-cron service
- Configure interval, timeout, retries
- Add start_period to healthchecks
- Add VSCode settings for keyboard layout
This commit is contained in:
2025-02-28 21:55:28 +00:00
parent e441b03ac1
commit 24cd73526f
2 changed files with 15 additions and 0 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"keyboard.layout": "de"
}

View File

@@ -18,6 +18,12 @@ services:
placement:
constraints:
- node.labels.reskreen-ready==true
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/api/auth/health/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
backend-cron:
image: registry.resk-u.ch/clerc/reskreen:latest
command:
@@ -51,6 +57,12 @@ services:
max_attempts: 3
placement:
constraints:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
- node.labels.reskreen-ready==true
networks:
default: