I came across the following issue. I have a .yml (v.3.2) for deploying a stack of services, most of them are java applications. Everything is working fine.
I added in one of these services (java) some lines for health check, as follows:
test: curl -f -s -S http://INTERNALIP:8080/monitoring/dummy || exit 1
So when I deploy the stack again with healthcheck enabled, the container doesn’t respond anymore on specified port (8080). Ichecked container and lloks to works fine without errors.
I tried many similar configurations but the result is the same.
Of course, since the container doesn’t respond, healthcheck works fine and container is restarted automatically.
Any idea/help is welcome