Enabling TLS for the Mongo database on Docker or Podman
Ensure that the you have read the introductory topic and verified that the TLS connection itself can be established. For more information, refer to Verifying if TLS connection can be established.
-
Locate the local .pem file to use with your Mongo deployment. For more information, refer to the official MongoDB documentation.
-
Modify your Mongo URL to use TLS. For more information, refer to Setting up TLS for the Mongo database.
-
Open the docker-compose.yml file in edit mode.
-
Add the volume mount to the Community section of the YAML file.
/opt/sametime/cacerts.pem:/local/notesdata/cacerts.pem
The example above assumes that you have the
cacerts.pem
file on the host system at the/opt/sametime
location. It will mount into the container at the location/local/notesdata/cacerts.pem
which should be the same path/filename as specified in thetlsCAFile
parameter on the Mongo connection string. -
Save the changes.
-
Start the Sametime server to apply the changes.
docker compose up -d
Parent Topic: Setting up TLS for the Mongo database