[extensions-web] docker-compose: added mariadb health check



commit 97b6d17a5899c96899e687a1479efedeb18287c2
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sat Nov 23 12:07:00 2019 +0400

    docker-compose: added mariadb health check

 openshift/docker/docker-compose.yml | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/openshift/docker/docker-compose.yml b/openshift/docker/docker-compose.yml
index b3fdbef..6a9ed92 100644
--- a/openshift/docker/docker-compose.yml
+++ b/openshift/docker/docker-compose.yml
@@ -13,6 +13,10 @@ services:
       - "127.0.0.1:43306:3306"
     volumes:
       - "database:/var/lib/mysql"
+    healthcheck:
+      test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
+      timeout: 20s
+      retries: 10
   extensions-web:
     build:
       context: ../../


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]