Skip to content
Snippets Groups Projects
Commit 30af8096 authored by jonasled's avatar jonasled
Browse files

add healthcheck

parent 22d8f32a
Branches
Tags
No related merge requests found
Pipeline #1106 passed
...@@ -36,6 +36,12 @@ COPY --from=composer /build/public /var/www/html ...@@ -36,6 +36,12 @@ COPY --from=composer /build/public /var/www/html
# |-------------------------------------------------------------------------- # |--------------------------------------------------------------------------
RUN a2enmod headers rewrite RUN a2enmod headers rewrite
# |--------------------------------------------------------------------------
# | enable metrics
# |--------------------------------------------------------------------------
RUN apt update && apt install curl
HEALTHCHECK CMD curl --fail http://localhost || exit 1
# |-------------------------------------------------------------------------- # |--------------------------------------------------------------------------
# | expose http port # | expose http port
# |-------------------------------------------------------------------------- # |--------------------------------------------------------------------------
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment