mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
fix apache healthcheck
Signed-off-by: Zoey <zoey@z0ey.de> Co-Authored-By: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
ce7027d026
commit
a9c4b1fdf4
2 changed files with 11 additions and 1 deletions
|
|
@ -61,8 +61,10 @@ RUN mkdir /var/log/supervisord; \
|
|||
COPY Caddyfile /
|
||||
|
||||
COPY start.sh /usr/bin/
|
||||
COPY healthcheck.sh /usr/bin/
|
||||
COPY supervisord.conf /
|
||||
RUN chmod +x /usr/bin/start.sh; \
|
||||
chmod +x /usr/bin/healthcheck.sh; \
|
||||
chmod +r /supervisord.conf; \
|
||||
chown www-data:www-data /Caddyfile; \
|
||||
chmod +r -R /etc/apache2
|
||||
|
|
@ -75,4 +77,4 @@ USER www-data
|
|||
ENTRYPOINT ["start.sh"]
|
||||
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|
||||
|
||||
HEALTHCHECK CMD (curl -skfI localhost:8000 && curl -skfI localhost:$APACHE_PORT) || exit 1
|
||||
HEALTHCHECK CMD healthcheck.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue