Steps to setup LDAPS

Is there any documentation for how to setup LDAPS?
I have everything working fine using LDAP but can’t get anything working once I switch it to LDAPS.
I am using docker-compose to create the container.
Based on other posts here and google it seems that you need to use the SONAR_WEB_JAVAADDITIONALOPTS to set the trustStore and password and copy the cert for the LDAP server to that path. How do I know what path though? Where is the trust store?

Here is my compose file:

version: “3”

services:
sonarqube:
image: sonarqube:8-developer
environment:
SONAR_JDBC_URL: {DB_URL} SONAR_JDBC_USERNAME: {DB_USER}
SONAR_JDBC_PASSWORD: {DB_PASSWORD} SONAR_SECRETKEYPATH: /opt/sonarqube/shared/sonar-secret.txt SONAR_SECURITY_REALM: LDAP LDAP_URL: ldaps:server:636 LDAP_AUTHENTICATOR_DOWNCASE: 'true' LDAP_REALM: domain.local LDAP_STARTTLS: 'true' LDAP_BINDDN: {LDAP_USER}
LDAP_BINDPASSWORD: {LDAP_PASSWORD} LDAP_USER_BASEDN: DC=domain,DC=local LDAP_USER_REQUEST: (&(objectCategory=user)(sAMAccountName={login})(|(memberOf={LDAP_GRP_ADMIN})(memberOf={LDAP_GRP_USER}))) LDAP_GROUP_BASEDN: DC=nammcal,DC=local LDAP_GROUP_REQUEST: (&(objectClass=group)(member={dn})) #SONAR_WEB_JAVAADDITIONALOPTS: -Djavax.net.ssl.trustStore=**?** -Djavax.net.ssl.trustStorePassword={TRUSTSTORE_PASSWORD}
volumes:
- sonarqube_conf:/opt/sonarqube/conf
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
- ${SHARED_PATH}:/opt/sonarqube/shared
ports:
- “9000:9000”
restart: always

volumes:
sonarqube_conf:
sonarqube_data:
sonarqube_extensions:
sonarqube_logs: