mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Added health check and restart policy to openresty
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| {% include 'roles/docker-compose/templates/base.yml.j2' %} | ||||
|   openresty: | ||||
|     {% include 'roles/docker-container/templates/base.yml.j2' %} | ||||
|     container_name: {{ OPENRESTY_CONTAINER }} | ||||
|     image: {{ OPENRESTY_IMAGE }}:{{ OPENRESTY_VERSION }} | ||||
|     network_mode: "host" | ||||
| @@ -12,4 +13,9 @@ | ||||
|       - {{ NGINX.DIRECTORIES.DATA.WELL_KNOWN }}:{{ NGINX.DIRECTORIES.DATA.WELL_KNOWN }}:ro | ||||
|       - {{ LETSENCRYPT_WEBROOT_PATH }}:{{ LETSENCRYPT_WEBROOT_PATH }}:ro | ||||
|       - {{ LETSENCRYPT_BASE_PATH }}:{{ LETSENCRYPT_BASE_PATH }}:ro | ||||
|     command: ["openresty", "-g", "daemon off;"] | ||||
|     command: ["openresty", "-g", "daemon off;"] | ||||
|     healthcheck: | ||||
|       test: ["CMD", "openresty", "-t", "-q"] | ||||
|       interval: 30s | ||||
|       timeout: 5s | ||||
|       retries: 3 | ||||
		Reference in New Issue
	
	Block a user