From d7df199e1f2427160b77afe856039fc866615e44 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 1 Nov 2021 15:57:47 +0100 Subject: [PATCH] Docker: Update docker-compose.yml examples for macOS and Windows --lower-case-table-names=1 stores tables in lowercase and compares names in a case-insensitive manner --- docker/examples/macos/docker-compose.yml | 4 +++- docker/examples/windows/docker-compose.yml | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docker/examples/macos/docker-compose.yml b/docker/examples/macos/docker-compose.yml index a847fb87e..b5db1c7f1 100644 --- a/docker/examples/macos/docker-compose.yml +++ b/docker/examples/macos/docker-compose.yml @@ -95,7 +95,9 @@ services: security_opt: - seccomp:unconfined - apparmor:unconfined - command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120 + ## --lower-case-table-names=1 stores tables in lowercase and compares names in a case-insensitive manner + ## see https://mariadb.com/kb/en/server-system-variables/#lower_case_table_names + command: mysqld --lower-case-table-names=1 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120 volumes: - "mariadb_data:/var/lib/mysql" # Never remove environment: diff --git a/docker/examples/windows/docker-compose.yml b/docker/examples/windows/docker-compose.yml index a77ae56a2..ffcbdf0f4 100644 --- a/docker/examples/windows/docker-compose.yml +++ b/docker/examples/windows/docker-compose.yml @@ -100,7 +100,9 @@ services: security_opt: - seccomp:unconfined - apparmor:unconfined - command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120 + ## --lower-case-table-names=1 stores tables in lowercase and compares names in a case-insensitive manner + ## see https://mariadb.com/kb/en/server-system-variables/#lower_case_table_names + command: mysqld --lower-case-table-names=1 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120 volumes: - "mariadb_data:/var/lib/mysql" # Never remove, the named volume "mariadb_data" is defined at the bottom environment: @@ -122,7 +124,8 @@ services: # - "/var/run/docker.sock:/var/run/docker.sock" # - "~/.docker/config.json:/config.json" # Optional, for authentication if you have a Docker Hub account -## Named volume for the Database Server, never remove unless you mount a regular folder instead (slower) +## Create named volumes, advanced users may remove this if they mount a regular host folder +## for the database or use SQLite instead (never remove otherwise) volumes: mariadb_data: driver: local