Skip to content

Commit

Permalink
Added HEALTHCHECK instruction to the Dockefile and enabled PHP FPM pi…
Browse files Browse the repository at this point in the history
…ng path
  • Loading branch information
TrafeX committed Jan 5, 2019
1 parent b8890aa commit d608b45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ COPY src/ /var/www/html/

EXPOSE 80 443
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1/fpm-ping
3 changes: 3 additions & 0 deletions config/fpm-pool.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ clear_env = no

; Catch output from PHP
catch_workers_output = yes

; Enable ping page to use in healthcheck
ping.path = /fpm-ping

0 comments on commit d608b45

Please sign in to comment.