Fix MariaDB healthcheck failing on MariaDB 11.8
The 'healthcheck --su-mysql' binary isn't reliably available in newer MariaDB images. Switch to 'mariadb-admin ping' which is always present. Also add start_period and increase retries for slow first-boot initialization on small VPS instances. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -82,10 +82,11 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- websitebox_internal
|
- websitebox_internal
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "healthcheck", "--su-mysql", "--connect", "--innodb_initialized"]
|
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-u", "root", "-p${DB_ROOT_PASSWORD}"]
|
||||||
interval: 30s
|
interval: 10s
|
||||||
timeout: 10s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 10
|
||||||
|
start_period: 30s
|
||||||
|
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot
|
image: certbot/certbot
|
||||||
|
|||||||
Reference in New Issue
Block a user