diff --git a/apps/mysql/5.5.62/conf/my.cnf b/apps/mysql/5.5.62/conf/my.cnf new file mode 100644 index 00000000..f7105107 --- /dev/null +++ b/apps/mysql/5.5.62/conf/my.cnf @@ -0,0 +1,5 @@ +[mysqld] +skip-host-cache +skip-name-resolve +datadir = /var/lib/mysql +!includedir /etc/mysql/conf.d/ diff --git a/apps/mysql/5.5.62/data.yml b/apps/mysql/5.5.62/data.yml new file mode 100644 index 00000000..e71c6a38 --- /dev/null +++ b/apps/mysql/5.5.62/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + formFields: + - default: mysql + envKey: PANEL_DB_ROOT_PASSWORD + labelEn: Root Password + labelZh: root用户密码 + random: true + required: true + rule: paramComplexity + type: password + - default: 3306 + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number diff --git a/apps/mysql/5.5.62/docker-compose.yml b/apps/mysql/5.5.62/docker-compose.yml new file mode 100644 index 00000000..5df48d7c --- /dev/null +++ b/apps/mysql/5.5.62/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3' + +services: + mysql: + image: mysql:5.5.62 + container_name: ${CONTAINER_NAME} + restart: always + environment: + MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD} + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:3306 + volumes: + - ./data/:/var/lib/mysql + - ./conf/my.cnf:/etc/mysql/my.cnf + - ./log:/var/log/mysql + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + command: + --lower-case-table-names=1 + --character-set-server=utf8 + --collation-server=utf8_general_ci + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true diff --git a/apps/mysql/5.6.51/conf/my.cnf b/apps/mysql/5.6.51/conf/my.cnf new file mode 100644 index 00000000..573c347c --- /dev/null +++ b/apps/mysql/5.6.51/conf/my.cnf @@ -0,0 +1,33 @@ +# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License, version 2.0, +# as published by the Free Software Foundation. +# +# This program is also distributed with certain software (including +# but not limited to OpenSSL) that is licensed under separate terms, +# as designated in a particular file or component or in included license +# documentation. The authors of MySQL hereby grant you an additional +# permission to link the program and your derivative works with the +# separately licensed software that they have included with MySQL. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License, version 2.0, for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +# +# The MySQL Server configuration file. +# +# For explanations see +# http://dev.mysql.com/doc/mysql/en/server-system-variables.html + +# * IMPORTANT: Additional settings that can override those from this file! +# The files must end with '.cnf', otherwise they'll be ignored. +# +!includedir /etc/mysql/conf.d/ +!includedir /etc/mysql/mysql.conf.d/ diff --git a/apps/mysql/5.6.51/data.yml b/apps/mysql/5.6.51/data.yml new file mode 100644 index 00000000..e71c6a38 --- /dev/null +++ b/apps/mysql/5.6.51/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + formFields: + - default: mysql + envKey: PANEL_DB_ROOT_PASSWORD + labelEn: Root Password + labelZh: root用户密码 + random: true + required: true + rule: paramComplexity + type: password + - default: 3306 + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number diff --git a/apps/mysql/5.6.51/docker-compose.yml b/apps/mysql/5.6.51/docker-compose.yml new file mode 100644 index 00000000..d0934dd0 --- /dev/null +++ b/apps/mysql/5.6.51/docker-compose.yml @@ -0,0 +1,29 @@ +version: '3' + +services: + mysql: + image: mysql:5.6.51 + container_name: ${CONTAINER_NAME} + restart: always + environment: + MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD} + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:3306 + volumes: + - ./data:/var/lib/mysql + - ./conf/my.cnf:/etc/mysql/my.cnf + - ./log:/var/log/mysql + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + command: + --explicit-defaults-for-timestamp=1 + --lower-case-table-names=1 + --character-set-server=utf8 + --collation-server=utf8_general_ci + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/apps/mysql/5.7.42/conf/my.cnf b/apps/mysql/5.7.42/conf/my.cnf new file mode 100644 index 00000000..9a6aa6f9 --- /dev/null +++ b/apps/mysql/5.7.42/conf/my.cnf @@ -0,0 +1,42 @@ +# For advice on how to change settings please see +# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html + +[mysqld] +# +# Remove leading # and set to the amount of RAM for the most important data +# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. +# innodb_buffer_pool_size = 128M +# +# Remove leading # to turn on a very important data integrity option: logging +# changes to the binary log between backups. +# log_bin +# +# Remove leading # to set options mainly useful for reporting servers. +# The server defaults are faster for transactions and fast SELECTs. +# Adjust sizes as needed, experiment to find the optimal values. +# join_buffer_size = 128M +# sort_buffer_size = 2M +# read_rnd_buffer_size = 2M +skip-host-cache +skip-name-resolve +datadir=/var/lib/mysql +socket=/var/run/mysqld/mysqld.sock +secure-file-priv=/var/lib/mysql-files +user=mysql + +# Disabling symbolic-links is recommended to prevent assorted security risks +symbolic-links=0 + +#log-error=/var/log/mysqld.log +pid-file=/var/run/mysqld/mysqld.pid + +max_allowed_packet=64M +character_set_server=utf8 +lower_case_table_names=1 +group_concat_max_len=1024000 + +[client] +socket=/var/run/mysqld/mysqld.sock + +!includedir /etc/mysql/conf.d/ +!includedir /etc/mysql/mysql.conf.d/ \ No newline at end of file diff --git a/apps/mysql/5.7.42/data.yml b/apps/mysql/5.7.42/data.yml new file mode 100644 index 00000000..e71c6a38 --- /dev/null +++ b/apps/mysql/5.7.42/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + formFields: + - default: mysql + envKey: PANEL_DB_ROOT_PASSWORD + labelEn: Root Password + labelZh: root用户密码 + random: true + required: true + rule: paramComplexity + type: password + - default: 3306 + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number diff --git a/apps/mysql/5.7.42/docker-compose.yml b/apps/mysql/5.7.42/docker-compose.yml new file mode 100644 index 00000000..b407ff1b --- /dev/null +++ b/apps/mysql/5.7.42/docker-compose.yml @@ -0,0 +1,29 @@ +version: '3' + +services: + mysql: + image: mysql:5.7.42 + container_name: ${CONTAINER_NAME} + restart: always + environment: + MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD} + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:3306 + volumes: + - ./data/:/var/lib/mysql + - ./conf/my.cnf:/etc/mysql/my.cnf + - ./log:/var/log/mysql + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + command: + --character-set-server=utf8mb4 + --collation-server=utf8mb4_general_ci + --explicit_defaults_for_timestamp=true + --lower_case_table_names=1 + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/apps/mysql/8.0.33/conf/my.cnf b/apps/mysql/8.0.33/conf/my.cnf new file mode 100644 index 00000000..30e94200 --- /dev/null +++ b/apps/mysql/8.0.33/conf/my.cnf @@ -0,0 +1,19 @@ +[mysqld] +skip-host-cache +skip-name-resolve +datadir=/var/lib/mysql +socket=/var/run/mysqld/mysqld.sock +secure-file-priv=/var/lib/mysql-files +user=mysql + + +character_set_server=utf8 +lower_case_table_names=1 +group_concat_max_len=1024000 +log_bin_trust_function_creators=1 + +pid-file=/var/run/mysqld/mysqld.pid +[client] +socket=/var/run/mysqld/mysqld.sock + +!includedir /etc/mysql/conf.d/ \ No newline at end of file diff --git a/apps/mysql/8.0.33/data.yml b/apps/mysql/8.0.33/data.yml new file mode 100644 index 00000000..e71c6a38 --- /dev/null +++ b/apps/mysql/8.0.33/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + formFields: + - default: mysql + envKey: PANEL_DB_ROOT_PASSWORD + labelEn: Root Password + labelZh: root用户密码 + random: true + required: true + rule: paramComplexity + type: password + - default: 3306 + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number diff --git a/apps/mysql/8.0.33/docker-compose.yml b/apps/mysql/8.0.33/docker-compose.yml new file mode 100644 index 00000000..b0f9d23b --- /dev/null +++ b/apps/mysql/8.0.33/docker-compose.yml @@ -0,0 +1,27 @@ +version: '3' + +services: + mysql: + image: mysql:8.0.33 + container_name: ${CONTAINER_NAME} + restart: always + environment: + MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD} + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:3306 + volumes: + - ./data/:/var/lib/mysql + - ./conf/my.cnf:/etc/my.cnf + - ./log:/var/log/mysql + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + labels: + createdBy: "Apps" + command: + - --default-authentication-plugin=mysql_native_password + +networks: + 1panel-network: + external: true diff --git a/apps/mysql/README.md b/apps/mysql/README.md new file mode 100644 index 00000000..7951cf6a --- /dev/null +++ b/apps/mysql/README.md @@ -0,0 +1,20 @@ +Copyright (c) 2000, 2022, Oracle and/or its affiliates. + +This is a release of MySQL, an SQL database server. + +License information can be found in the LICENSE file. + +In test packages where this file is renamed README-test, the license +file is renamed LICENSE-test. + +This distribution may include materials developed by third parties. +For license and attribution notices for these materials, +please refer to the LICENSE file. + +For further information on MySQL or additional documentation, visit +http://dev.mysql.com/doc/ + +For additional downloads and the source of MySQL, visit +http://dev.mysql.com/downloads/ + +MySQL is brought to you by the MySQL team at Oracle. diff --git a/apps/mysql/data.yml b/apps/mysql/data.yml new file mode 100644 index 00000000..16f35f8d --- /dev/null +++ b/apps/mysql/data.yml @@ -0,0 +1,20 @@ +name: MySQL +tags: + - 数据库 +title: MySQL 开源关系型数据库 +type: 数据库 +description: MySQL 开源关系型数据库 +additionalProperties: + key: mysql + name: MySQL + tags: + - Database + shortDescZh: MySQL 开源关系型数据库 + shortDescEn: Open source relational database management system + type: runtime + crossVersionUpdate: false + limit: 1 + recommend: 4 + website: https://www.mysql.com + github: https://github.com/mysql/mysql-server + document: https://dev.mysql.com/doc/ diff --git a/apps/mysql/logo.png b/apps/mysql/logo.png new file mode 100644 index 00000000..a53df5fe Binary files /dev/null and b/apps/mysql/logo.png differ