mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-25 12:48:49 +08:00
feat: MariaDB 增加 my.cnf 配置文件
This commit is contained in:
parent
26d7a0cd3a
commit
ff30568ff2
30
apps/mariadb/10.11.5/conf/my.cnf
Normal file
30
apps/mariadb/10.11.5/conf/my.cnf
Normal 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/
|
@ -10,6 +10,7 @@ services:
|
|||||||
- ${PANEL_APP_PORT_HTTP}:3306
|
- ${PANEL_APP_PORT_HTTP}:3306
|
||||||
volumes:
|
volumes:
|
||||||
- ./db/data:/var/lib/mysql
|
- ./db/data:/var/lib/mysql
|
||||||
|
- ./conf/my.cnf:/etc/mysql/my.cnf
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
|
MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
|
||||||
labels:
|
labels:
|
||||||
|
Loading…
Reference in New Issue
Block a user