From 1e6c9832d341ff73545f46861a907259d21626bc Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Tue, 31 Oct 2017 13:17:10 +0000 Subject: [PATCH] ajout HEALTHCHECK --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 261f164..c0d9a50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,11 +13,14 @@ RUN apt-get update >/dev/null && \ rm -rf /var/lib/apt/lists/* && \ groupadd -g 1007 nginx && \ usermod -a -G nginx www-data && \ - rmdir ../html && \ + rm -rf /var/www/html && \ ln -s /var/www/mydl.cabillot.eu/root /var/www/html && \ curl "https://getcomposer.org/composer.phar" -o "composer.phar" && \ php composer.phar install && \ a2enmod rewrite +HEALTHCHECK --interval=10s \ + CMD curl --fail "http://localhost" || exit 1 + # TODO : ajouter les HEADER HTTPS sécurisés dans le .htaccess WORKDIR /var/www/mydl.cabillot.eu \ No newline at end of file