Skip to content

Commit d608b45

Browse files
committed
Added HEALTHCHECK instruction to the Dockefile and enabled PHP FPM ping path
1 parent b8890aa commit d608b45

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ COPY src/ /var/www/html/
2424

2525
EXPOSE 80 443
2626
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
27+
28+
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1/fpm-ping

config/fpm-pool.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ clear_env = no
3636

3737
; Catch output from PHP
3838
catch_workers_output = yes
39+
40+
; Enable ping page to use in healthcheck
41+
ping.path = /fpm-ping

0 commit comments

Comments
 (0)