From 22133f74d0729254ec2312e17f65f263d6d2856a Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 29 Apr 2019 15:53:21 +1200 Subject: [PATCH] docker: Increase max packet size to 128M I've seen "MySQL server has gone away" errors in the logs, and this time it isn't the timeout; one of the suggested fixes is to increase the max packet size (and I have also seen errors in the mariadb logs indicating that the max has been exceeded). Signed-off-by: Paul Eggleton --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index f8e36d0..b4ec796 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: layersdb: image: mariadb:10.2 - command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --wait_timeout=28800 + command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --wait_timeout=28800 --max_allowed_packet=128M environment: - "MYSQL_DATABASE=layersdb" - "MYSQL_ROOT_PASSWORD=testingpw"