add healthcheck

This commit is contained in:
jonasled 2021-07-16 13:40:49 +00:00
parent 22d8f32aa3
commit 30af8096cf

View file

@ -36,6 +36,12 @@ COPY --from=composer /build/public /var/www/html
# |--------------------------------------------------------------------------
RUN a2enmod headers rewrite
# |--------------------------------------------------------------------------
# | enable metrics
# |--------------------------------------------------------------------------
RUN apt update && apt install curl
HEALTHCHECK CMD curl --fail http://localhost || exit 1
# |--------------------------------------------------------------------------
# | expose http port
# |--------------------------------------------------------------------------