mirror of
				https://github.com/mashirozx/docker-php-nginx.git
				synced 2025-05-29 01:49:24 +08:00 
			
		
		
		
	Added HEALTHCHECK instruction to the Dockefile and enabled PHP FPM ping path
This commit is contained in:
		
							parent
							
								
									b8890aadeb
								
							
						
					
					
						commit
						d608b45950
					
				@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user