Levelrail
Skip to content

Self-host Strapi with Docker ​

An open-source headless CMS with a customizable admin panel and a REST/GraphQL content API.

This page describes the Levelrail template for Strapi (Developer Tools). It deploys the services below as one Docker Compose app on your own server.

Project site: https://docs.strapi.io/.

Recommended memory: about 512 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbpostgres:16-alpinenone
strapi_db_data -> /var/lib/postgresql/data
strapielestio/strapi-production:v5.33.41337
strapi_uploads -> /opt/app/public/uploads

Environment variables ​

ServiceVariableValue
dbPOSTGRES_DBPreset in the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset in the template
strapiADMIN_JWT_SECRETGenerated at deploy
strapiAPP_KEYSGenerated at deploy
strapiDATABASE_CLIENTPreset in the template
strapiDATABASE_HOSTPreset in the template
strapiDATABASE_NAMEPreset in the template
strapiDATABASE_PASSWORDGenerated at deploy
strapiDATABASE_PORTPreset in the template
strapiDATABASE_USERNAMEPreset in the template
strapiJWT_SECRETGenerated at deploy
strapiNODE_ENVPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Strapi with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Strapi. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy strapi --name my-strapi

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Developer Tools templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.