---
title: "Deploy custom modules"
slug: "deploy-custom-modules"
abstract: ""
---
# Deploy custom modules

For Sitecore components, by default, you deploy only the Solr collections and dacpacs included in the platform. In Sitecore 10.1 and later versions you can also deploy custom modules.

If the module you want to deploy requires database updates and/or custom Solr collections, you might need to build a new layer on top of the `mssql-init` and/or `solr-init` images.

## Add database updates to a module

To add database updates to a module:

1. Build a new layer on top of the `mssql-init` image.
2. In your build-script, add a command for the following action:
    - Copy the module dacpacs from the module asset image into the `c:\module_name_data` folder for the new image.

## Add Solr collections to a module

To add Solr collections to a module:

1. Build a new layer on top of the `solr-init` image.
2. Add the Solr collections module configuration files from the module assets image to the `c:\data` folder.

    > [!note]
    > You must use the JSON file format for collections. If the module name is `sxa`, you can, for example, name the Solr collections file `cores-sxa.json`.