keycloak/docker-compose.yml aktualisiert
This commit is contained in:
@@ -26,10 +26,9 @@ services:
|
||||
- ${HOST_PORT1}:8080
|
||||
- ${HOST_PORT2}:8443
|
||||
healthcheck:
|
||||
# Use a bash-based socket check if curl is missing
|
||||
test: ["CMD-SHELL", "timeout 1 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/8080' || exit 1"]
|
||||
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/9000; echo -e 'GET /health/ready HTTP/1.1\r\nhost: localhost\r\nConnection: close\r\n\r\n' >&3; grep 'HTTP/1.1 200 OK' <&3"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s # Gives Keycloak time to boot before failing it
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
entrypoint: '/opt/keycloak/bin/kc.sh'
|
||||
Reference in New Issue
Block a user