From 91383d07dabb1116caccfc823494ecd6b937c853 Mon Sep 17 00:00:00 2001
From: stedif <stefano.difrischia@inaf.it>
Date: Fri, 4 Nov 2022 12:53:34 +0100
Subject: [PATCH] L2SS-1030: add healthcheck to device-configuration

---
 docker-compose/device-configuration.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/docker-compose/device-configuration.yml b/docker-compose/device-configuration.yml
index 0847ee46e..e1c5ef673 100644
--- a/docker-compose/device-configuration.yml
+++ b/docker-compose/device-configuration.yml
@@ -42,6 +42,12 @@ services:
     - TANGO_HOST=${TANGO_HOST}
     - TANGO_ZMQ_EVENT_PORT=5822
     - TANGO_ZMQ_HEARTBEAT_PORT=5922
+    healthcheck:
+      test: l2ss-health STAT/Configuration/1
+      interval: 1m
+      timeout: 30s
+      retries: 3
+      start_period: 30s
     working_dir: /opt/lofar/tango
     entrypoint:
       - bin/start-ds.sh
-- 
GitLab