From 2b36b12528d5fcd1382889fb5079da97d9070d0f Mon Sep 17 00:00:00 2001 From: TheSt1tch Date: Fri, 4 Oct 2024 11:29:49 +0500 Subject: [PATCH] add mariadb --- docs/docker/mariadb.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/docker/mariadb.md diff --git a/docs/docker/mariadb.md b/docs/docker/mariadb.md new file mode 100644 index 0000000..3c828f3 --- /dev/null +++ b/docs/docker/mariadb.md @@ -0,0 +1,23 @@ +# MariaDB + +```yaml +services: + mariadb: + container_name: mariadb + image: mariadb:latest #11.5.2 + restart: unless-stopped + stop_grace_period: 5s + security_opt: # see https://github.com/MariaDB/mariadb-docker/issues/434#issuecomment-1136151239 + - seccomp:unconfined + - apparmor:unconfined + command: --innodb-buffer-pool-size=512M --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: + - "./database:/var/lib/mysql" + environment: + MARIADB_AUTO_UPGRADE: "1" + MARIADB_INITDB_SKIP_TZINFO: "1" + MARIADB_DATABASE: "name_db" + MARIADB_USER: "username" + MARIADB_PASSWORD: "pass_user" + MARIADB_ROOT_PASSWORD: "root_pass" +``` \ No newline at end of file