Browse Source

added healthcheck

Dominik 1 year ago
parent
commit
ab7f675fc9
1 changed files with 8 additions and 0 deletions
  1. 8 0
      docker-compose.yml

+ 8 - 0
docker-compose.yml

@@ -19,6 +19,14 @@ services:
 
     entrypoint: /home/ejabberd/entrypoint.sh
     command: foreground
+
+    healthcheck:
+      test: ["CMD", "nc", "-z", "ejabberd:5347"]
+      interval: 1m30s
+      timeout: 10s
+      retries: 3
+      start_period: 30s
+
     
     volumes:
       - ./entrypoint.sh:/home/ejabberd/entrypoint.sh:ro