keycloak/docker-compose.yml aktualisiert
This commit is contained in:
@@ -25,9 +25,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- ${HOST_PORT1}:8080
|
- ${HOST_PORT1}:8080
|
||||||
- ${HOST_PORT2}:8443
|
- ${HOST_PORT2}:8443
|
||||||
|
command: start # Use --dev for testing, or 'start' for production
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "curl", "-f", "http://localhost:8080/health/ready" ]
|
# Use a bash-based socket check if curl is missing
|
||||||
interval: 15s
|
test: ["CMD-SHELL", "timeout 1 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/8080' || exit 1"]
|
||||||
timeout: 2s
|
interval: 10s
|
||||||
retries: 15
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
start_period: 30s # Gives Keycloak time to boot before failing it
|
||||||
entrypoint: '/opt/keycloak/bin/kc.sh'
|
entrypoint: '/opt/keycloak/bin/kc.sh'
|
||||||
Reference in New Issue
Block a user