From 40931e78acfaed53c1d960bd46bd5be6ec2d4056 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Tue, 21 Feb 2023 18:24:15 +0300 Subject: [PATCH] Fix slow shutdown for the Grafana container (#5746) The root process of the container is `/bin/sh`, which ignores the initial `SIGTERM` that Docker sends. So Docker has to wait 10 seconds and then kill everything with `SIGKILL`. Make Grafana itself the root process instead. Grafana handles the `SIGTERM` and shuts down quickly. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4c823f45c..ab6a4c2f7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -319,7 +319,7 @@ services: path: /var/lib/grafana/dashboards foldersFromFilesStructure: true EOF - /run.sh + exec /run.sh networks: cvat: aliases: -- GitLab