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
| Service | Image | Container ports | Volumes |
|---|---|---|---|
onetimesecret | onetimesecret/onetimesecret:v0.26.14 | 3000 | none |
redis | redis:7-alpine | none | onetimesecret_redis_data -> /data |
Environment variables
| Service | Variable | Value |
|---|---|---|
onetimesecret | AUTH_AUTOVERIFY | Preset in the template |
onetimesecret | AUTH_SIGNUP | Preset in the template |
onetimesecret | COLONEL | Preset in the template |
onetimesecret | HOST | Preset in the template |
onetimesecret | RACK_ENV | Preset in the template |
onetimesecret | REDIS_URL | Preset in the template |
onetimesecret | SECRET | Generated at deploy |
onetimesecret | SSL | Preset 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-onetimesecretSee 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.