Where is default environment properties saved? #2180
-
i run the Klaw use Docker Compose, i can't find application.properties inside the docker container, where is the location of default environment properties? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hey @kukuhprastyono thanks for asking! The docker image is built with the default application.properties file the one found in resource/main/application.properties in both core and cluster-api. We have a couple of options to override that configuration, we do have some documentation on how to configure the docker images here However I am a heavy user of docker myself and I like to use an external application.properties. To do this i update the docker compose with an additional environment variable see Within this klaw-application.properties I define all the details from SSO and SSL to my database connection string. Similarly I do the same for the cluster-api by setting SPRING_CONFIG_LOCATION: "/klaw/cluster-application.properties"
If you prefer you can simply override all the application.properties settings as environment variables but when there are lots of changes I think it is easier to read the external application.properties. Example settings overriding the SSL settings
Other things to note are that their may be slight differences in the docker compose for linux and for mac/windows they can be found on the same page as earlier starting with the linux file Also if you are trying to find the location of the /klaw/ mount when klaw-core and cluster-api are running you can run the following command to get the location of it. Please let me know if that answers your question! Thanks, |
Beta Was this translation helpful? Give feedback.
Hey @kukuhprastyono thanks for asking!
The docker image is built with the default application.properties file the one found in resource/main/application.properties in both core and cluster-api.
We have a couple of options to override that configuration, we do have some documentation on how to configure the docker images here
However I am a heavy user of docker myself and I like to use an external application.properties.
To do this i update the docker compose with an additional environment variable see
SPRING_CONFIG_LOCATION: "/klaw/klaw-application.properties"
Within this klaw-application.properties I define all the details from SSO and SSL to my database connection string.
Similarly I do…