Skip to content

Using MongoDB on cloud

MongoDB Atlas is a cloud-based database that can be used to maintain Sametime data.

Before the Sametime server can communicate with the MongoDB Atlas, you must have an Atlas account. To sign-up for an account, refer to the Try MongoDB Atlas website.

  1. Log into your MongoDB Atlas account.

  2. Access the Atlas user interface.

  3. Click Connect.

    1. Select the driver from the dropdown list.

    2. Select whether to use password or x.509 encryption.

    In the box under View full code example, is the URL to the MongoDB on Atlas. You can use the copy icon to copy the URL. The following is an example URL:

    mongodb+srv://Admin:<password>@cluster0.EXAMPLE.mongodb.net/?retryWrites=true&w=majority
    
  4. Atlas requires TLS to connect to the service.

    1. You must update the URL to add your truststore file location.

      mongodb+srv://Admin:<password>@cluster0.EXAMPLE.mongodb.net/?retryWrites=true&w=majority&tlsCAFile=truststore\_location
      
    2. Map the truststore file into the Community container.

      volumes:
        - truststore\_location