Closed tigerinus closed 9 months ago
It'll stay in "starting" and becomes "healthy" after 5 minutes, see the HEALTHCHECK
in the Dockerfile:
That's because on slow SBCs startup can take several minutes and it would then endlessly restart the container during startup causing it never to become healthy.
You can reconfigure the healthcheck
behavior in your compose file if you are using faster hardware, see:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Use the
docker-compose.yml
suggested inREADME.md
(or build a custom one - doesn't matter because it's an issue caused by container)Then run
docker compose up --wait
in the path.Expect: OpenHAB should be up and running in a healthy state
Actual: It waits forever...
Let's look at some other docker compose, like this one:
https://github.com/docker/awesome-compose/tree/master/wordpress-mysql
This is what's expected: The container should be in healthy state and
--wait
returns.