Need help on to confirm manual changes in docker-compose.yml file for nginx healthcheck command

Thanks for your support.

I would be so grateful if someone can help me into below concern:

We have upgraded version of odk central from 1.2.1 to 1.4.2 on Oracle Linux machine. My application is working fine but I was getting nginx status unhealthy and I have not seen any error in nginx logs. To get nginx healthy I changed netcat test command of nginx healthcheck in docker-compose.yml file from nc -z localhost 80 || exit 1 to nc -vz mydomain 443 || exit 1.

After above change my application still working fine and nginx status came up healthy and all looks ok but my concern is :

Do my changes correct??
Does it impact anything in my application??


The change you made checks if HTTPS, DNS lookups, and the container are working rather than checking if HTTP and the container are working. It should be fine, but I would recommend trying to understand why the original command is not working. What changes, if any, did you make to the stock config (including to the .env file)?

Thanks for your reply.
I only change domain and email in .env file as per the odk central document. Below is my .env file settings:

One thing I noticed I am not able to ping my domain on port 80 which http but it working with port 443 which is https.