Levelrail
Skip to content

Self-host One-Time Secret with Docker ​

Share a password or API key through a link that self-destructs after the first view.

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

Project site: https://docs.onetimesecret.com.

Recommended memory: about 256 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
onetimesecretonetimesecret/onetimesecret:v0.26.143000none
redisredis:7-alpinenone
onetimesecret_redis_data -> /data

Environment variables ​

ServiceVariableValue
onetimesecretAUTH_AUTOVERIFYPreset in the template
onetimesecretAUTH_SIGNUPPreset in the template
onetimesecretCOLONELPreset in the template
onetimesecretHOSTPreset in the template
onetimesecretRACK_ENVPreset in the template
onetimesecretREDIS_URLPreset in the template
onetimesecretSECRETGenerated at deploy
onetimesecretSSLPreset 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 One-Time Secret with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select One-Time Secret. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy onetimesecret --name my-onetimesecret

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.