Fix healthcheck - check webserver response only

This commit is contained in:
2025-12-17 12:40:19 +01:00
parent 88f5d9bfb2
commit 9ab6347eb5

View File

@@ -31,8 +31,8 @@ COPY --chown=www-data:www-data . .
# Install Composer dependencies (production)
RUN composer install --no-dev --optimize-autoloader --no-interaction
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
CMD curl -fsS http://localhost/wp/wp-login.php || exit 1
# Health check - prüft nur ob Webserver antwortet
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD curl -fsS http://localhost/ -o /dev/null || exit 1
EXPOSE 80