add docker healthchecks to the docker images

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey 2022-08-25 15:06:23 +02:00
parent c90ee1c4db
commit 1edb422f3d
10 changed files with 35 additions and 2 deletions

View file

@ -19,6 +19,7 @@ RUN set -ex; \
openssl \
netcat \
dpkg-dev \
curl \
; \
rm -rf /var/lib/apt/lists/*
@ -72,4 +73,6 @@ RUN echo "root:$(openssl rand -base64 12)" | chpasswd
USER www-data
ENTRYPOINT ["start.sh"]
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
HEALTHCHECK CMD (curl -skfI localhost:8000 && curl -skfI localhost:$APACHE_PORT) || exit 1