Fix healthcheck - check webserver response only
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user