microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.35k stars 1.29k forks source link

Fix application.properties syntax issue #159

Open calogxro opened 1 year ago

calogxro commented 1 year ago

In application.properties the value of the variable _${DOCKER_HOSTIP:localhost} is supposed to be "localhost" in case DOCKER_HOST_IP is unset, but it doesn't work.

FIX

The correct syntax to do that is _${DOCKER_HOSTIP:-localhost} with a "-" before localhost

https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html