I tried using env variables in my application.yml configration like:
spring: main: show_banner: false --- spring: profiles: production server: addres
Try ${OPENSHIFT_DIY_PORT} (the usual Spring placeholder notation). See here for docs.
${OPENSHIFT_DIY_PORT}
You even can add default value, if environment variable not provided:
logging: level: root: ${LOGGING_LEVEL_ROOT:info}