Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Example showing that actuator's port cannot be set at runtime via env variables

Notifications You must be signed in to change notification settings

adrien-ben/springboot-native-actuator-env-var

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-native-actuator-env-var

Example showing that actuator's port cannot be set at runtime via env variables.

Build and run native image

mvn -Pnative spring-boot:build-image

docker run -p 8080:8080 -p 8082:8082 -e MANAGEMENT_SERVER_PORT=8082 --rm actuator-env-var:0.0.1-SNAPSHOT

Solution

This is the expected behavior. See spring-projects/spring-boot#35288. As a workaround setting a default value for management.server.port in the properties file then overriding it with the environment variable works.

About

Example showing that actuator's port cannot be set at runtime via env variables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages