Levelrail
Skip to content

Self-host Temporal with Docker ​

Durable workflow execution: write long-running business logic as code and let Temporal survive failures.

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

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

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbpostgres:16-alpinenone
temporal_db_data -> /var/lib/postgresql/data
temporaltemporalio/auto-setup:1.29.77233none
temporal-uitemporalio/ui:2.54.18080none

Environment variables ​

ServiceVariableValue
dbPOSTGRES_DBPreset in the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset in the template
temporalDBPreset in the template
temporalDB_PORTPreset in the template
temporalPOSTGRES_PWDGenerated at deploy
temporalPOSTGRES_SEEDSPreset in the template
temporalPOSTGRES_USERPreset in the template
temporal-uiTEMPORAL_ADDRESSPreset 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 Temporal with Levelrail ​

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

With the CLI:

levelrail-cli templates deploy temporal --name my-temporal

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

More Automation templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.