getodk / central

ODK Central is a server that is easy to use, very fast, and stuffed with features that make data collection easier. Contribute and make the world a better place! ✨🗄✨
https://docs.getodk.org/central-intro/
Apache License 2.0
125 stars 151 forks source link

docker-compose ps never says `Healthy` #9

Closed yanokwa closed 5 years ago

yanokwa commented 6 years ago
root@central-sandbox:~/central# docker-compose ps
       Name                     Command               State                    Ports
------------------------------------------------------------------------------------------------------
central_mail_1       /bin/entrypoint.sh exim -b ...   Up      25/tcp
central_nginx_1      /bin/bash /scripts/odk-set ...   Up      0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
central_postgres_1   docker-entrypoint.sh postgres    Up      5432/tcp
central_service_1    ./wait-for-it.sh postgres: ...   Up      8383/tcp

It just says Up, it doesn't say Up (healthy)

issa-tseng commented 6 years ago

hm. you must have an older version of docker; it's a pretty new feature.

issa-tseng commented 6 years ago

not sure what to do about this.

yanokwa commented 6 years ago

This is the problem with docs that are too specific, I guess.

Under the State column, you will want to see text that reads Up (healthy) or something similar. If you see Up (health: starting), give it a few minutes. If you see some other text, something has gone wrong.

issa-tseng commented 6 years ago

no, definitely aware. not sure how to phrase all of that, and we definitely want some kind of health indication even on older dockers if possible..

issa-tseng commented 5 years ago

honestly, at this point my plan is sort of to just wait this issue out until it's not an issue anymore, which might already be true?

yanokwa commented 5 years ago

Works now...

root@test:~/central# docker-compose ps
       Name                     Command                  State                        Ports
-------------------------------------------------------------------------------------------------------------
central_mail_1       /bin/entrypoint.sh exim -b ...   Up             25/tcp
central_nginx_1      /bin/bash /scripts/odk-set ...   Up (healthy)   0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
central_postgres_1   docker-entrypoint.sh postgres    Up             5432/tcp
central_service_1    ./wait-for-it.sh postgres: ...   Up             8383/tcp