mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Add docker healthcheck (#1492)
This commit is contained in:
parent
7b9c2d2978
commit
d3b758d10a
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ ENV USERNAME="" PASSWORD=""
|
||||||
# Expose the dashboard to Docker
|
# Expose the dashboard to Docker
|
||||||
EXPOSE 6052
|
EXPOSE 6052
|
||||||
|
|
||||||
|
# Run healthcheck (heartbeat)
|
||||||
|
HEALTHCHECK --interval=5m --timeout=3s \
|
||||||
|
CMD curl --fail http://localhost:6052 || exit 1
|
||||||
|
|
||||||
# The directory the user should mount their configuration files to
|
# The directory the user should mount their configuration files to
|
||||||
WORKDIR /config
|
WORKDIR /config
|
||||||
# Set entrypoint to esphome so that the user doesn't have to type 'esphome'
|
# Set entrypoint to esphome so that the user doesn't have to type 'esphome'
|
||||||
|
|
Loading…
Reference in a new issue