Configuration Files #313
Answered
by
albogdano
sergiosilva-nsj
asked this question in
Q&A
-
Can I use environment variables instead of configuration files? Because it is more easy to change, when I am configuring the environment though docker images (in Kubernets, for example). Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
albogdano
Jun 21, 2022
Replies: 1 comment 1 reply
-
Yes, of course - you can set environment variables with underscores instead of dots. For example |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sergiosilva-nsj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, of course - you can set environment variables with underscores instead of dots. For example
scoold.port = 8000
becomesscoold_port=8000
. Also you can set the environment variableJAVA_OPTS="-Dscoold.port=8000 -Dscoold.env=production"
.