Levelrail
Skip to content

Self-host Logto with Docker ​

Modern, developer-first customer identity: sign-in experiences, social login, and OIDC without the plumbing.

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

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

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbpostgres:16-alpinenone
logto_db_data -> /var/lib/postgresql/data
logtosvhd/logto:1.43.03001, 3002none

Environment variables ​

ServiceVariableValue
dbPOSTGRES_DBPreset in the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset in the template
logtoADMIN_ENDPOINTPreset in the template
logtoDB_URLGenerated at deploy
logtoENDPOINTPreset in the template
logtoTRUST_PROXY_HEADERPreset 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 Logto with Levelrail ​

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

With the CLI:

levelrail-cli templates deploy logto --name my-logto

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

More Security templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.