Nuxeo Server


This page is scheduled for review and update. Check back soon for updated content!

Document-Based Storage is an architectural abstraction in the Nuxeo Platform that allows the storage of documents in a document-oriented store, for instance NoSQL databases.

An implementation is available for MongoDB.

Nuxeo supports the following MongoDB version:

MongoDB 3.4


When using MongoDB 3.0 or higher we recommend that you configure the WiredTiger storage engine for better performance of write operations. Please follow this documentation to activate this storage engine.

Nuxeo stores its data in a MongoDB database under the default collection. The name of the collection is the Nuxeo repository name. If you have more than one repository configured, other collections with the names of these repositories will be used for storage.

By default MongoDB doesn't require authentication, but you can enable the client access control and create a user with the dbOwner role.

Nuxeo Configuration

To activate MongoDB document and directories storage (as of Nuxeo FT 9.2), add the mongodb template to your existing list of templates (nuxeo.templates) in nuxeo.conf. Including the mongodb-audit template that will also activate audit storage.

For older versions of Nuxeo, if you want to activate audit and directories storage, you need to install the MongoDB extension addon. This addon includes mongodb-audit and mongodb-directory templates in order to store respectively audit or directories data in MongoDB. For example:


If you are not using the MongoDB extension addon for older versions of Nuxeo, you must keep the template corresponding to your SQL database in nuxeo.templates. For instance you could have:




The following properties are available in nuxeo.conf:

  • nuxeo.mongodb.server: The MongoDB server, either a hostname or a hostname with port or a full mongodb:// URI if you have an authentication, the pattern is: mongodb://[username:[email protected]]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] (defaults to localhost:27017)
  • nuxeo.mongodb.dbname: The MongoDB database. (defaults to nuxeo)

Using the full mongodb:// URI syntax you can configure the connection options, like the pool size, the write concern or the read preference, for instance:


See the MongoDB Connection String URI Format for the list of options.

TLS/SSL Configuration

If you have chosen to configure TLS/SSL then you can set up Nuxeo using nuxeo.conf with the following properties (since Nuxeo 9.10-HF22):


See the Trust Store and Key Store Configuration page for more.


It is possible to use MongoDB's GridFS mechanism to store binary files inside MongoDB instead of the default filesystem mechanism of Nuxeo. This is activated by adding gridfsbinaries to the templates, for instance:


When doing this, binaries will be stored in the default.fs GridFS bucket, which means that in native MongoDB the collections default.fs.files and default.fs.chunks will be used. See the GridFS Reference for more details about MongoDB's GridFS implementation.

Connection Pool Configuration

Nuxeo has MongoDBConnectionService to instantiate MongoDB connections in the platform. This service holds all connections to MongoDB. By default, a contribution with id default will be contributed to the Nuxeo Platform, filled with nuxeo.mongodb.server and nuxeo.mongodb.dbname from nuxeo.conf.

If the service doesn't have a registered connection for the given id, it will return the default one.

You can customize the connections used depending on the feature. To do so, you need to contribute a connection to the service as below:

<component name="[COMPONENT_NAME]">

  <extension target="org.nuxeo.runtime.mongodb.MongoDBComponent" point="connection">
    <connection id="[CONNECTION_ID]">


Here's a list of how features resolve their connection:

Feature Connection id
Audit audit
Directory directory/[DIRECTORY_NAME]
Repository repository/[REPOSITORY_NAME]
GridFS blobProvider/[BLOB_PROVIDER_ID]

Related pages in current documentation
2 months ago Manon Lumeau Backport PR #1173
3 years ago Florent Guillaume 39 | ongodb-quartz-cluste
3 years ago Solen Guitter 38
3 years ago Solen Guitter 37
3 years ago Solen Guitter 36
3 years ago Solen Guitter 35
3 years ago Benoit Delbosc 34
3 years ago Benoit Delbosc 33
3 years ago Benoit Delbosc 32
3 years ago Benoit Delbosc 31
3 years ago Solen Guitter 30 | Move warning about user creation in Confiiguration section
3 years ago Solen Guitter 29 | Update supported versions
3 years ago Benoit Delbosc 28 | 8.2 support mongo 3.2
3 years ago Gildas Lefevre 27
3 years ago Gildas Lefevre 26
3 years ago Gildas Lefevre 25
3 years ago Solen Guitter 24
3 years ago Julien Carsique 23 | NXP-18773: restored MongoDB parameters
3 years ago Julien Carsique 22 | Reverted from v. 20
3 years ago Julien Carsique 21 | NXP-18773: changed MongoDB parameters
4 years ago Florent Guillaume 20 | added gridfs
4 years ago Alain Escaffre 19
4 years ago Alain Escaffre 18
4 years ago Solen Guitter 17 | Update link, cleanup page format, update related pages
4 years ago Manon Lumeau 16
4 years ago Florent Guillaume 15
4 years ago Benoit Delbosc 14
4 years ago Benoit Delbosc 13 | Emphasis on the URI connection options
4 years ago Florent Guillaume 12
4 years ago Florent Guillaume 11 | Added nuxeo.mongodb.dbname and detailed server syntax
5 years ago Manon Lumeau 10
5 years ago RĂ©mi Cattiau 9 | As requested by Brendan
5 years ago Florent Guillaume 8
5 years ago Florent Guillaume 7
5 years ago Solen Guitter 6
5 years ago Florent Guillaume 5
5 years ago Florent Guillaume 4
5 years ago Florent Guillaume 3
5 years ago Florent Guillaume 2
5 years ago Florent Guillaume 1
History: Created by Florent Guillaume

We'd love to hear your thoughts!

All fields required