However, when running on Docker, it uses the PORT environment variable when setting up the HEALTHCHECK, and that one has no default value. This was very confusing for me and it took me a while to realize why the container just shut down. :)
I think we should do one of the following:
Make sure the Docker health check has the same default value
Remove the default value from index.js and make it clear that it is mandatory
The
PORT
environment variable have a default value, see:https://github.com/charypar/swarm-dashboard/blob/master/server/index.js#L9
However, when running on Docker, it uses the
PORT
environment variable when setting up theHEALTHCHECK
, and that one has no default value. This was very confusing for me and it took me a while to realize why the container just shut down. :)I think we should do one of the following:
index.js
and make it clear that it is mandatory