I have my spring boot application with a yml to configure it inside a docker containter. Something like that:
spring: application:
name: micro-example
config:
uri: ${vcap.services.config-service.credentials.uri:http://xxx.xxx.xx.73:8888}
As you can see, there is an ip hardcoded in my config, that is a bad idea, because the compililation is just for a server. Does a way exist to externalize the ip, or set it from a docker command line or a better idea?