Docker + Administration->General Settings

I am using SonarQube 8.4.2.
I am new to docker and have set up a custom docker-compose.yml file that is working to create a sonarqube docker container. It is also copying my sonar.properties files.

I’d like to pre-set some of the Administration->General Settings when the container runs.
I’ve tried setting environment variables in the docker-compose.yml file using the ‘key’ show on the Administration->General Settings page. I’ve also tried setting values in sonar.properties using the ‘key’. I’ve been looking through the documentation on how to use that ‘key’ but can’t find anything. Can someone point me in the right direction?

Interestingly, I just noticed that the Look and Feel section values work when set in the sonar.properties file. The email properties are the ones that don’t seem to work.

email.prefix=[SONARQUBE] Important:
email.from=<our email address>
email.fromName=SonarQube
email.smtp_host.secured=<our mail gateway>
email.smtp_password.secured=<our password>
email.smtp_port.secured=25
email.smtp_username.secured=sonarqube

Never mind. I appear to have found the reason this doesn’t work. Strangely, it seems intentional.

https://groups.google.com/g/sonarqube/c/aAFPS2KpuY8/discussion?pli=1

https://jira.sonarsource.com/browse/SONAR-11818

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.