From 3d72eaa0a50fb585ddb710da707a0048132338bc Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Fri, 14 Feb 2025 16:01:15 +0800 Subject: [PATCH] feat: Add mariadb 11.4.5 (#3196) --- mariadb/11.4.5/conf/my.cnf | 30 ++++++++++++++++++++++++++ mariadb/11.4.5/data.yml | 36 +++++++++++++++++++++++++++++++ mariadb/11.4.5/docker-compose.yml | 19 ++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 mariadb/11.4.5/conf/my.cnf create mode 100644 mariadb/11.4.5/data.yml create mode 100644 mariadb/11.4.5/docker-compose.yml diff --git a/mariadb/11.4.5/conf/my.cnf b/mariadb/11.4.5/conf/my.cnf new file mode 100644 index 000000000..2debec9b3 --- /dev/null +++ b/mariadb/11.4.5/conf/my.cnf @@ -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/ \ No newline at end of file diff --git a/mariadb/11.4.5/data.yml b/mariadb/11.4.5/data.yml new file mode 100644 index 000000000..db374fdcd --- /dev/null +++ b/mariadb/11.4.5/data.yml @@ -0,0 +1,36 @@ +additionalProperties: + formFields: + - default: mariadb + envKey: PANEL_DB_ROOT_PASSWORD + labelEn: Root Password + labelZh: root用户密码 + random: true + required: true + rule: paramComplexity + type: password + label: + en: Root Password + ja: ルートパスワード + ms: Kata laluan root + pt-br: Senha do root + ru: Пароль root + ko: 루트 비밀번호 + zh-Hant: Root 密碼 + zh: Root 用户密码 + - default: 3306 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + label: + en: Port + ja: ポート + ms: Port + pt-br: Porta + ru: Порт + ko: 포트 + zh-Hant: 埠 + zh: 端口 diff --git a/mariadb/11.4.5/docker-compose.yml b/mariadb/11.4.5/docker-compose.yml new file mode 100644 index 000000000..727259ed2 --- /dev/null +++ b/mariadb/11.4.5/docker-compose.yml @@ -0,0 +1,19 @@ +services: + mariadb: + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + image: mariadb:11.4.5 + ports: + - ${PANEL_APP_PORT_HTTP}:3306 + volumes: + - ./db/data:/var/lib/mysql + - ./conf/my.cnf:/etc/mysql/my.cnf + environment: + MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD} + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true \ No newline at end of file