Skip to content

Commit 9318a36

Browse files
committed
build(docker): add healthcheck ping endpoint
1 parent 51ef0e9 commit 9318a36

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,8 @@
161161
> /app/site/web/.version.json && \
162162
chown www-data:www-data /app/site/web/.version.json
163163

164+
# used for health check endpoint
165+
RUN apk add --no-cache fcgi
166+
164167
ENTRYPOINT ["/app/scripts/build-scripts/docker-php-entrypoint.sh"]
165168
CMD ["php-fpm"]

config/all/php/www.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ pm.max_children = ${PM_MAX_CHILDREN}
99
pm.start_servers = ${PM_START_SERVERS}
1010
pm.min_spare_servers = ${PM_MIN_SPARE_SERVERS}
1111
pm.max_spare_servers = ${PM_MAX_SPARE_SERVERS}
12-
pm.max_requests = ${PM_MAX_REQUESTS}
12+
pm.max_requests = ${PM_MAX_REQUESTS}
13+
ping.path = /ping
14+
ping.response = pong

0 commit comments

Comments
 (0)