mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			387 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			387 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
|     healthcheck:
 | |
|       test:
 | |
|         - "CMD"
 | |
|         - "curl"
 | |
|         - "-f"
 | |
| {% if container_hostname is defined %}
 | |
|         - "-H"
 | |
|         - "Host: {{ container_hostname }}"
 | |
| {% endif %}
 | |
|         - "http://127.0.0.1{{ (":" ~ container_port) if container_port is defined else '' }}/{{ container_healthcheck | default('') }}"
 | |
|       interval: 1m
 | |
|       timeout: 10s
 | |
|       retries: 3
 | |
| {{ "\n" }} |