mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 12:18:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			308 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			308 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
    healthcheck:
 | 
						|
      test:
 | 
						|
        - "CMD"
 | 
						|
        - "bash"
 | 
						|
        - "-c"
 | 
						|
        - "exec 3<>/dev/tcp/localhost/{{ container_port }} && echo -e 'GET /{{ container_healthcheck | default('') }} HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3 && cat <&3 | grep -q 'HTTP/1.1'"
 | 
						|
{{ "\n" }} |