re-enable healtchecks

This commit is contained in:
blu 2024-03-18 18:39:05 +01:00
parent bdb4f51d0b
commit 56e73c981b
Signed by: blu
GPG Key ID: 9DF47BD2E647A7D6
1 changed files with 12 additions and 14 deletions

View File

@ -16,13 +16,12 @@ services:
mode: 0555
secrets:
- db_password
# TODO: activate health check when done with debug
# healthcheck:
# test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/fpm-ping"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 1m
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/fpm-ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 1m
deploy:
update_config:
failure_action: rollback
@ -48,13 +47,12 @@ services:
secrets:
- db_password
- db_root_password
# TODO: activate health check when done with debug
# healthcheck:
# test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized"]
# interval: 30s
# timeout: 30s
# retries: 3
# start_period: 1m
healthcheck:
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized"]
interval: 30s
timeout: 30s
retries: 3
start_period: 1m
deploy:
labels: [ 'coop-cloud.${STACK_NAME}.db.version=10.5-31e52f4d87a' ]
networks: