Skip to content

fix: use MariaDB 10.11 for the default database - #499

Open
oliv3rdrt wants to merge 1 commit into
nextcloud:masterfrom
oliv3rdrt:fix/mariadb-10.11
Open

oliv3rdrt wants to merge 1 commit into
nextcloud:masterfrom
oliv3rdrt:fix/mariadb-10.11

Conversation

@oliv3rdrt

Copy link
Copy Markdown

The database-mysql service uses mariadb:10.6, which is older than the MariaDB versions current Nextcloud releases support (Nextcloud 35 supports 10.11 to 12.3). This moves it to mariadb:10.11 and sets MARIADB_AUTO_UPGRADE: '1', so a volume created by 10.6 is upgraded on first start instead of failing.

Tested: a volume created with mariadb:10.6 started with mariadb:10.11 (10.11.19), kept its data, and the image ran mariadb-upgrade on its own. docker compose config accepts the file.

The Bitnami images used by the primary and replica setup (bitnami/mariadb:10.6) no longer exist on Docker Hub, at 10.6 or 10.11. That is #483 and is left out of this change.

MariaDB 10.6 is older than the versions current Nextcloud releases support.
MARIADB_AUTO_UPGRADE lets volumes created by 10.6 upgrade on first start.

Signed-off-by: Oliver Anyanwu <113263811+oliv3rdrt@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant