*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Verified Commit 15b3d88d authored by Tsepelakis, Sotirios's avatar Tsepelakis, Sotirios :dart:
Browse files

Add healthcheck for Keycloak

parent ed059002
Branches
Tags
1 merge request!16Add healthcheck for Keycloak
Pipeline #236755 passed
......@@ -3,7 +3,7 @@ version: '3.8'
services:
postgres:
image: postgres:${POSTGRES_TAG:-latest}
restart: always
restart: "unless-stopped"
ports:
- "5432:5432"
volumes:
......@@ -15,7 +15,7 @@ services:
keycloak:
image: quay.io/keycloak/keycloak:${KC_TAG:-latest}
restart: always
restart: "unless-stopped"
environment:
KC_DB: postgres
KC_DB_SCHEMA: public
......@@ -23,6 +23,7 @@ services:
KC_DB_URL_DATABASE: ${POSTGRES_DB:-keycloak}
KC_DB_URL_HOST: postgres
KC_DB_USERNAME: ${POSTGRES_USER:-keycloak}
KC_HEALTH_ENABLED: "true"
KC_HOSTNAME: ${KC_HOST:-localhost}
KC_HTTP_RELATIVE_PATH: ${KC_HTTP_RELATIVE_PATH:-/}
KC_HTTPS_CERTIFICATE_FILE: /etc/pki/tls/certs/${KC_HTTPS_CERTIFICATE_FILE:-tls.crt}
......@@ -42,10 +43,15 @@ services:
- ./ssl/${KC_HTTPS_CERTIFICATE_KEY_FILE:-tls.key}:/etc/pki/tls/private/${KC_HTTPS_CERTIFICATE_KEY_FILE:-tls.key}
# if KC_DEV_MODE variable is set, start keycloak in dev mode (start-dev)
command: start${KC_DEV_MODE:+-dev}
healthcheck:
test: ["CMD", "curl", "--head", "-fsS", "http://localhost:8080/auth/health/ready"]
interval: 30s
timeout: 15s
retries: 5
pg-backups:
image: prodrigestivill/postgres-backup-local:${POSTGRES_TAG:-latest}
restart: always
restart: "unless-stopped"
environment:
BACKUP_DIR: ${BACKUP_DIR:-/backups}
BACKUP_KEEP_DAYS: ${BACKUP_KEEP_DAYS:-7}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment