New recipe: Redmine with MariaDB.
This commit is contained in:
3
.recipes/redmine_mariadb/storage/volumes/mysql/.gitignore
vendored
Normal file
3
.recipes/redmine_mariadb/storage/volumes/mysql/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ignore everything in this directory except this file.
|
||||
*
|
||||
!.gitignore
|
||||
@@ -0,0 +1,30 @@
|
||||
# MariaDB 11.x settings according to the Redmine stack (optional).
|
||||
# See also:
|
||||
# https://gist.github.com/fevangelou/fb72f36bbe333e059b66
|
||||
# https://github.com/major/MySQLTuner-perl
|
||||
|
||||
[mysqld]
|
||||
|
||||
# https://gist.github.com/fevangelou/fb72f36bbe333e059b66
|
||||
# consider https://github.com/major/MySQLTuner-perl
|
||||
innodb_buffer_pool_size = 2G # 70-80% of memory available for MySQL/MariaDB
|
||||
innodb_buffer_pool_instances = 2 # Use 1 instance per 1GB of InnoDB pool size
|
||||
innodb_file_per_table = 1
|
||||
innodb_flush_log_at_trx_commit = 0
|
||||
innodb_flush_method = O_DIRECT
|
||||
innodb_log_buffer_size = 64M
|
||||
innodb_log_file_size = 256M # should be 25% of innodb_buffer_pool_size / 2
|
||||
innodb_stats_on_metadata = 0
|
||||
# https://mariadb.com/kb/en/configuring-mariadb-for-optimal-performance/
|
||||
# we practically don't use the MyISAM engine
|
||||
key_buffer_size = 10M
|
||||
# https://mariadb.com/kb/en/mariadb-memory-allocation/#query-cache
|
||||
query_cache_type = 0
|
||||
query_cache_size = 0
|
||||
#query_cache_type = ON
|
||||
#query_cache_size = 10M
|
||||
#query_cache_limit = 1M
|
||||
|
||||
# Buffer Settings
|
||||
#sort_buffer_size = 1M
|
||||
#join_buffer_size = 1M
|
||||
3
.recipes/redmine_mariadb/storage/volumes/mysql_init_d/.gitignore
vendored
Normal file
3
.recipes/redmine_mariadb/storage/volumes/mysql_init_d/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ignore everything in this directory except this file.
|
||||
*
|
||||
!.gitignore
|
||||
3
.recipes/redmine_mariadb/storage/volumes/redmine_files/.gitignore
vendored
Normal file
3
.recipes/redmine_mariadb/storage/volumes/redmine_files/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ignore everything in this directory except this file.
|
||||
*
|
||||
!.gitignore
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
chown -R 999:999 *
|
||||
find . -type d -exec chmod 2770 {} \;
|
||||
find . -type f -exec chmod 660 {} \;
|
||||
|
||||
Reference in New Issue
Block a user