Added support for passing ports in via environment variables

This commit is contained in:
2023-10-29 18:07:50 +01:00
parent 517f2b4f1b
commit b04d6f4389
3 changed files with 2 additions and 26 deletions
@@ -1,7 +1,3 @@
server.port: 12000
management.server.port: 12001
spring:
config:
import:
@@ -1,12 +1,12 @@
server:
port: 12000
port: ${PORT:12000}
shutdown: graceful
forward-headers-strategy: framework
### technical configurations ###
management:
# for security, don't use same port as application
server.port: 12001
server.port: ${ACTUATOR_PORT:12001}
health:
livenessState.enabled: true
readinessState.enabled: true