Knowledgeroot Knowledgebase written in Java
The project uses environment variables for credentials and runtime settings.
- Copy
.env.exampleto.env - Set secure values in
.env - Start dependencies:
docker compose --env-file .env up -d - Start app:
mvn spring-boot:run
The Spring Boot app reads values from src/main/resources/application.properties using ${...} placeholders.
You can also use a local override file that is not committed:
- Copy
config/application-local.properties.exampletoconfig/application-local.properties - Set your local values in
config/application-local.properties - Start app normally:
mvn spring-boot:run
application.properties imports this file via:
spring.config.import=optional:file:./config/application-local.properties