From ebd93239c2b1f84456e9e65f18e00c6c55ecaa76 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Wed, 6 Oct 2021 01:32:52 +0300 Subject: [PATCH] Decrease mariadb memory consumption --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 224d48a..c252e6f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: max-size: "1024k" max-file: "2" mysql: - image: mariadb:10.5 + image: mariadb:10.6 container_name: telegram-api-server-mysql restart: unless-stopped ports: @@ -28,6 +28,7 @@ services: - ./.mysql:/var/lib/mysql environment: MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' + command: ["mysqld", "--innodb-buffer-pool-size=16M"] networks: default: name: telegram-api-server \ No newline at end of file