add healthcheck to work around #7
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user