ソースを参照

changed healthcheck to avoid log msg
.

dominik 3 年 前
コミット
bb84feddb2
1 ファイル変更2 行追加1 行削除
  1. 2 1
      docker-compose.yml

+ 2 - 1
docker-compose.yml

@@ -21,7 +21,8 @@ services:
     command: foreground
 
     healthcheck:
-      test: ["CMD", "nc", "-z", "ejabberd:5347"]
+#      test: ["CMD", "nc", "-z", "ejabberd:5347"]
+      test: /home/ejabberd/bin/ejabberdctl status | grep -q started
       interval: 15s #interval for the first and subsequent checks
       timeout: 10s
       retries: 3