Skip to content

examples: add healthchecks and service_healthy depends_on to mariadb …#2565

Open
Neha-2005-VCE wants to merge 1 commit intonextcloud:masterfrom
Neha-2005-VCE:add-healthchecks-mariadb-redis
Open

examples: add healthchecks and service_healthy depends_on to mariadb …#2565
Neha-2005-VCE wants to merge 1 commit intonextcloud:masterfrom
Neha-2005-VCE:add-healthchecks-mariadb-redis

Conversation

@Neha-2005-VCE
Copy link
Copy Markdown

What does this PR do?

Adds healthcheck blocks to the db (MariaDB) and redis services.
Updates depends_on in app and cron to use condition: service_healthy.

Why?

Without healthchecks, Docker marks a container as ready the moment
it starts, not when it is actually accepting connections. This causes
race conditions on first install where Nextcloud tries to connect to
MariaDB before it has finished initializing.

Closes #2250

…apache

Closes nextcloud#2250

Signed-off-by: Neha Goud <nehagoud300@gmail.com>
@Neha-2005-VCE Neha-2005-VCE force-pushed the add-healthchecks-mariadb-redis branch from 27dd5fe to e5fc179 Compare April 4, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

healthchecks / example

1 participant