Add healthchecks to backend services
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m58s
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:
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"keyboard.layout": "de"
|
||||
}
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user