From f55f2049f74526a513fd9109f17cb3c3f70eacb3 Mon Sep 17 00:00:00 2001 From: will Farrell Date: Wed, 22 Feb 2017 11:26:44 -0700 Subject: [PATCH] add healthcheck --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ac6fa39..abf6b97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,4 +25,7 @@ COPY config /etc/dehydrated/config COPY docker-entrypoint.sh / ENTRYPOINT ["/docker-entrypoint.sh"] +HEALTHCHECK --interval=5s --timeout=3s \ + CMD ps aux | grep '[d]ehydrated' || exit 1 + CMD ["dehydrated","-h"]