mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +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" }} |