From 2ef640c1cc9af9f713565fd1885f27957b987b76 Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Wed, 30 Apr 2025 15:24:07 +0200 Subject: [PATCH] Define mariadb command options --- docker-compose.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index eff039f..45d6b77 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,33 @@ services: image: mariadb:11.4-noble #LTS Long Time Support Until May 29, 2029. security_opt: - no-new-privileges:false - command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-read-only-compressed=OFF + command: + - "--transaction-isolation=READ-COMMITTED" + - "--binlog-format=ROW" + - "--innodb-read-only-compressed=OFF" + - "--skip-name-resolve" + - "--innodb_buffer_pool_size=128M" + - "--innodb_buffer_pool_instances=1" + - "--innodb_flush_log_at_trx_commit=2" + - "--innodb_log_file_size=32M" + - "--innodb_max_dirty_pages_pct=90" + - "--query_cache_type=1" + - "--query_cache_size=64M" + - "--query_cache_limit=2M" + - "--query_cache_min_res_unit=2K" + - "--tmp_table_size=64M" + - "--max_heap_table_size=64M" + - "--key_buffer_size=16M" + - "--thread_cache_size=16" + - "--slow_query_log=1" + - "--slow_query_log_file=/var/log/mysql/slow.log" + - "--long_query_time=1" + - "--default-character-set=utf8mb4" + - "--character_set_server=utf8mb4" + - "--collation_server=utf8mb4_general_ci" + - "--innodb_large_prefix=on" + - "--innodb_file_format=barracuda" + - "--innodb_file_per_table=1" expose: - 3306 volumes: