1
0

chore(deps): update mariadb docker tag to v11.8.6 (#3958)

This commit is contained in:
renovate[bot]
2026-02-10 15:01:04 +00:00
committed by GitHub
parent 5c9ccf1bf8
commit f8d5f84e83
4 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/
#
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]
# Port or socket location where to connect
# port = 3306
socket = /run/mysqld/mysqld.sock
# Import all .cnf files from configuration directory
!includedir /etc/mysql/mariadb.conf.d/
!includedir /etc/mysql/conf.d/

View File

@@ -0,0 +1,33 @@
additionalProperties:
formFields:
- default: "./data"
edit: true
envKey: MARIADB_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
label:
en: Data persistence path
zh: 数据持久化路径
required: true
type: text
- default: 3306
envKey: PANEL_APP_PORT_HTTP
labelZh: 连接端口
labelEn: Connection Port
label:
en: Connection Port
zh: 连接端口
required: true
rule: paramPort
type: number
- default: ""
envKey: MYSQL_ROOT_PASSWORD
labelZh: 管理员密码
labelEn: Admin Password
label:
en: Admin Password
zh: 管理员密码
random: true
required: true
rule: paramComplexity
type: password

View File

@@ -0,0 +1,18 @@
networks:
1panel-network:
external: true
services:
mariadb:
image: mariadb:11.8.6
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3306
volumes:
- ${MARIADB_ROOT_PATH}/data:/var/lib/mysql
- ${MARIADB_ROOT_PATH}/config/my.cnf:/etc/mysql/my.cnf

View File

@@ -0,0 +1,18 @@
#!/bin/bash
if [ -f .env ]; then
source .env
mkdir -p "$MARIADB_ROOT_PATH"
mkdir -p "$MARIADB_ROOT_PATH/config"
mkdir -p "$MARIADB_ROOT_PATH/data"
cp ./config/my.cnf "$MARIADB_ROOT_PATH/config/my.cnf"
chown -R 1000:1000 "$MYSQL_ROOT_PATH"
echo "Check Finish."
else
echo "Error: .env file not found."
fi