by importing properties in application.yml/properties file
spring: config: import: optional:file:.env[.properties] datasource: url: ${DB_URL} ....