add healthcheck
This commit is contained in:
parent
22d8f32aa3
commit
30af8096cf
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
# |--------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue