From fcd6491936209e23bb8327f4eb72685d5d7af6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 30 Dec 2025 07:52:10 +0100 Subject: [PATCH] mariadb: update and pin to 11.4.5, add healthcheck, change root password mariadb: change root password --- docker-compose.yml | 15 ++++++++++++++- secrets/mariadb_root_password | Bin 0 -> 47 bytes 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 secrets/mariadb_root_password diff --git a/docker-compose.yml b/docker-compose.yml index 2968c83..0d3c0c7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,8 @@ secrets: gitea_runner_token: file: secrets/gitea_runner_token.txt + mariadb_root_password: + file: secrets/mariadb_root_password configs: caddyfile: @@ -498,18 +500,29 @@ services: mariadb: container_name: mariadb - image: linuxserver/mariadb + image: linuxserver/mariadb:11.4.5 networks: public: ipv4_address: 192.168.240.23 ports: - "${MARIADB_EXTERNAL_PORT}:${MARIADB_INTERNAL_PORT}" + secrets: + - mariadb_root_password environment: - MARIADB_AUTO_UPGRADE=true + - PUID=${PUID} + - PGID=${PGID} + - TZ=${TZ} + - FILE__MYSQL_ROOT_PASSWORD=/run/secrets/mariadb_root_password volumes: - "${DOCKER_STORAGE_PATH}/mariadb:/config" - sockets:/run/mysqld/ restart: unless-stopped + healthcheck: + test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ] + interval: 5s + timeout: 5s + retries: 10 baserow: container_name: baserow diff --git a/secrets/mariadb_root_password b/secrets/mariadb_root_password new file mode 100644 index 0000000000000000000000000000000000000000..c52769d5d0308c3f371532783b26a83f6118a63f GIT binary patch literal 47 zcmV+~0MP#cM@dveQdv+`0O@bq)CK7(R1e&Qb4=s%_`qle6dS&ERc`79+0rze(Dx