Docker: add healthcheck on port 7070 (#28606)
This commit is contained in:
parent
d7436cd889
commit
82001f3c33
1 changed files with 7 additions and 0 deletions
|
|
@ -97,5 +97,12 @@ EXPOSE 8899/udp
|
|||
# SMA Energy Manager
|
||||
EXPOSE 9522/udp
|
||||
|
||||
HEALTHCHECK \
|
||||
--interval=30s \
|
||||
--timeout=5s \
|
||||
--start-period=30s \
|
||||
--retries=3 \
|
||||
CMD wget -qO /dev/null http://localhost:7070 || exit 1
|
||||
|
||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||
CMD [ "evcc" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue