From 3bc7dce4053ea67de68917f0b8403eee8d19e262 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 20 Dec 2018 10:35:58 +1300 Subject: [PATCH] docker: set mariadb wait_timeout to upstream default The default wait_timeout we are getting from the official MariaDB container (as inherited from Debian) is 600s, which is too short if you walk away while the setup script is running and it stops on the "manage.py createsuperuser" step for longer than 10 minutes. We don't really need this timeout, so just use the upstream default of 28800 (8h) instead. 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 7f93509..885324f 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 + command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --wait_timeout=28800 environment: - "MYSQL_DATABASE=layersdb" - "MYSQL_ROOT_PASSWORD=testingpw"