Write Healthcheck for Keycloak to enable better startup control for forwardauth #117

Closed
opened 2024-01-04 12:15:02 -08:00 by Jafner · 1 comment
Owner

https://docs.docker.com/compose/startup-order/

https://docs.docker.com/compose/compose-file/05-services/#depends_on

We can use the following block in our forwardauth config to delay startup of our forwardauth containers until the keycloak container is healthy, which eliminates the need to restart those containers immediately.

depends_on:
      keycloak:
        condition: service_healthy  
https://docs.docker.com/compose/startup-order/ https://docs.docker.com/compose/compose-file/05-services/#depends_on We can use the following block in our forwardauth config to delay startup of our forwardauth containers until the keycloak container is healthy, which eliminates the need to restart those containers immediately. ``` depends_on: keycloak: condition: service_healthy ```
Jafner referenced this issue from a commit 2024-01-04 12:16:11 -08:00
Jafner referenced this issue from a commit 2024-01-04 15:31:47 -08:00
Author
Owner

Done and working!

Done and working!
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Jafner/homelab#117
No description provided.