New recipe: Nextcloud with MariaDB.
This commit is contained in:
4
.recipes/nextcloud_mariadb/storage/backups/dumps/.gitignore
vendored
Normal file
4
.recipes/nextcloud_mariadb/storage/backups/dumps/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory except these files.
|
||||
*
|
||||
!.gitignore
|
||||
!.rotate_folder.conf
|
||||
@@ -0,0 +1,9 @@
|
||||
# This is a shell script excerpt for configuration purposes only.
|
||||
# Handle with care! Please don't put code here, only variables.
|
||||
|
||||
CLASSES_PATTERN="^([^.]*)\..*\.$HOSTNAME\.(dmp|sql\.gz|tgz|log)$"
|
||||
DOIT="yes" # if empty the script makes a dry run
|
||||
# RETAIN_DAYS=7 # retains all files created within that many days
|
||||
# RETAIN_WEEKS=4 # retains one file per week/month,
|
||||
# RETAIN_MONTHS=12 # created within that many weeks/months
|
||||
|
||||
3
.recipes/nextcloud_mariadb/storage/backups/webcontent/.gitignore
vendored
Normal file
3
.recipes/nextcloud_mariadb/storage/backups/webcontent/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ignore everything in this directory except these files.
|
||||
*
|
||||
!.gitignore
|
||||
3
.recipes/nextcloud_mariadb/storage/volumes/mysql/.gitignore
vendored
Normal file
3
.recipes/nextcloud_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 Nextcloud 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/nextcloud_mariadb/storage/volumes/mysql_init_d/.gitignore
vendored
Normal file
3
.recipes/nextcloud_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/nextcloud_mariadb/storage/volumes/nextcloud_data/.gitignore
vendored
Normal file
3
.recipes/nextcloud_mariadb/storage/volumes/nextcloud_data/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ignore everything in this directory except this file.
|
||||
*
|
||||
!.gitignore
|
||||
3
.recipes/nextcloud_mariadb/storage/volumes/nextcloud_html/.gitignore
vendored
Normal file
3
.recipes/nextcloud_mariadb/storage/volumes/nextcloud_html/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ignore everything in this directory except this file.
|
||||
*
|
||||
!.gitignore
|
||||
3
.recipes/nextcloud_mariadb/storage/volumes/nextcloud_init.d/.gitignore
vendored
Normal file
3
.recipes/nextcloud_mariadb/storage/volumes/nextcloud_init.d/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ignore everything in this directory except this file.
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user