add healthcheck to work around #7

This commit is contained in:
2026-03-31 23:37:38 +02:00
parent 71f50281b3
commit 5853b160af
+17
View File
@@ -12,6 +12,23 @@ services:
- GRIST_OIDC_SP_PROFILE_EMAIL_ATTR
secrets:
- grist_oidc_idp_client_secret
healthcheck:
# this checks if login does work, otherwise you cannot login if your IdP started after grist
# to be removed as soon as this is resolved: https://github.com/gristlabs/grist-core/issues/1912
test:
[
"CMD",
"curl",
"--silent",
"--fail",
"http://localhost:8484/o/docs/login",
]
# long interval as every check is a login attempt with the IdP
interval: 2m
timeout: 5s
retries: 2
start_interval: 5s
start_period: 30s
secrets:
grist_oidc_idp_client_secret: