add mas healthcheck
This commit is contained in:
@ -79,7 +79,6 @@ ENABLE_REGISTRATION=false
|
|||||||
#SECRET_MAS_SIGNING_RSA_VERSION=v1 # generate=false
|
#SECRET_MAS_SIGNING_RSA_VERSION=v1 # generate=false
|
||||||
|
|
||||||
#### MAS upstream OIDC provider (e.g. Authentik)
|
#### MAS upstream OIDC provider (e.g. Authentik)
|
||||||
# See mas-authentik-and-roadmap.md for migration procedure.
|
|
||||||
# Create a new OAuth2 app in your IdP with redirect URI: https://<DOMAIN>/upstream/callback/<MAS_UPSTREAM_PROVIDER_ID>
|
# Create a new OAuth2 app in your IdP with redirect URI: https://<DOMAIN>/upstream/callback/<MAS_UPSTREAM_PROVIDER_ID>
|
||||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.mas-upstream.yml"
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.mas-upstream.yml"
|
||||||
#MAS_UPSTREAM_PROVIDER_ID= # ULID, e.g. 01JSHPZHAXC50QBKH67MH33TNF — generate at https://www.ulidtools.com
|
#MAS_UPSTREAM_PROVIDER_ID= # ULID, e.g. 01JSHPZHAXC50QBKH67MH33TNF — generate at https://www.ulidtools.com
|
||||||
|
|||||||
@ -21,6 +21,23 @@ services:
|
|||||||
- mas_encryption
|
- mas_encryption
|
||||||
- mas_synapse_shared
|
- mas_synapse_shared
|
||||||
- mas_signing_rsa
|
- mas_signing_rsa
|
||||||
|
# Official image is distroless (no curl/wget); upstream suggests `mas-cli config check` for probes.
|
||||||
|
# See https://github.com/element-hq/matrix-authentication-service/issues/3741 — validates config, not HTTP.
|
||||||
|
# GET /health is still served (resource `health` in mas.config.yaml.tmpl) for probes from other images.
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
"/usr/local/bin/mas-cli",
|
||||||
|
"--config",
|
||||||
|
"/etc/mas/config.yaml",
|
||||||
|
"config",
|
||||||
|
"check",
|
||||||
|
]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 60s
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|||||||
@ -19,6 +19,8 @@ http:
|
|||||||
- name: graphql
|
- name: graphql
|
||||||
playground: false
|
playground: false
|
||||||
- name: assets
|
- name: assets
|
||||||
|
# https://element-hq.github.io/matrix-authentication-service/reference/configuration.html#httplisteners
|
||||||
|
- name: health
|
||||||
binds:
|
binds:
|
||||||
- address: "[::]:8080"
|
- address: "[::]:8080"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user