mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Add Healthcheck to Dockerfile (#5651)
This commit is contained in:
		| @@ -101,6 +101,10 @@ ENV USERNAME="" PASSWORD="" | |||||||
| # Expose the dashboard to Docker | # Expose the dashboard to Docker | ||||||
| EXPOSE 6052 | EXPOSE 6052 | ||||||
|  |  | ||||||
|  | # Run healthcheck (heartbeat) | ||||||
|  | HEALTHCHECK --interval=30s --timeout=30s \ | ||||||
|  |   CMD curl --fail http://localhost:6052/version -A "HealthCheck" || exit 1 | ||||||
|  |  | ||||||
| COPY docker/docker_entrypoint.sh /entrypoint.sh | COPY docker/docker_entrypoint.sh /entrypoint.sh | ||||||
|  |  | ||||||
| # The directory the user should mount their configuration files to | # The directory the user should mount their configuration files to | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user