From 2082af0e36e8599c50b3f09cee03cd004e1c03f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20G=C3=B6bel?= <dgoebel@techfak.uni-bielefeld.de> Date: Thu, 29 Dec 2022 19:04:12 +0100 Subject: [PATCH] Add healthcheck to docker container --- CHANGELOG.md | 1 + Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a552260..100c79d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,3 +7,4 @@ * Show correct number of visible objects when searching for objects #28 ### Internal * Use a central repository for the buckets and current user permissions to simplify complex interactions between components #29 +* Add healthcheck to docker container diff --git a/Dockerfile b/Dockerfile index 68d1540..3b4ab9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ RUN npm run build-only # production stage FROM nginx:stable-alpine as production-stage +HEALTHCHECK --interval=35s --timeout=4s CMD curl -f http://localhost || exit 1 COPY --from=build-stage /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 -- GitLab