Deploy LastSignal
Self-hosted E2EE dead man's switch with email check-ins
lastsignal
Just deployed
/rails/storage
Deploy and Host self hosted LastSignal (Other) on Railway
This template deploys LastSignal, a self-hosted end-to-end encrypted dead man's switch, as independent community packaging of giovantenne/lastsignal v1.1.1 (MIT). It is not affiliated with or endorsed by LastSignal.
About Hosting LastSignal open-source software on Railway (self hosted LastSignal template)
This template runs the MIT-licensed LastSignal project as a single Railway service called lastsignal, built from ghcr.io/onepush-dev/lastsignal:1.1.1.
Why Deploy LastSignal, the self-hosted end-to-end encrypted dead man switch on Railway
A hosted digital-legacy service asks you to trust its servers and its pricing with your most sensitive messages.
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying LastSignal on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Railway vs Other Hosting Providers and VPS for LastSignal self hosting
This table compares this LastSignal template on Railway with running the same upstream software on a general VPS.
| Provider | What You Get with Railway | What You Get with the Other Provider |
|---|---|---|
| DigitalOcean | A one-click deploy that asks only for the four SMTP inputs, with a generated SECRET_KEY_BASE and a persistent volume. | A droplet you size and secure yourself, with Docker and TLS set up by hand. |
| AWS | One service, one volume, and a /up health check configured from the template. | Fine-grained control over networking and region, but you assemble the instance and mail path yourself. |
| Hetzner | Managed deploys and restarts with no server upkeep on your side. | Low-cost raw servers where you handle OS updates, backups, and SMTP configuration directly. |
Both routes run the same MIT software, so choose based on how much server work you want to own.
Common Use Cases for hosted LastSignal
- Solo traveller or remote worker: You schedule a weekly email check-in, and if you stop answering for a set period, an encrypted message with account access and instructions reaches a trusted contact.
- Keeping household credentials recoverable: You store encrypted notes covering banking, utilities, and password manager recovery, delivered to your partner only if your check-ins stop.
- Sending personal letters on delay: You write encrypted letters to family members that stay sealed until your check-ins lapse, so they arrive only when you cannot send them yourself.
- Protecting a small team's shared access: A founder or sole administrator keeps encrypted handover notes for a co-founder, released automatically if the founder stops responding to check-ins.
- Handling a medical or emergency plan: You record encrypted emergency details and contacts that go to chosen recipients if you are unreachable for longer than your chosen interval.
Dependencies for LastSignal Docker hosted on Railway
This section lists what the template deploys and what you need before and after the first deploy.
Deployment Dependencies for Managed LastSignal Service
The template creates one public service named lastsignal on port 8080. It mounts a volume at /rails/storage for the SQLite databases.
Implementation Details for LastSignal
The image ghcr.io/onepush-dev/lastsignal:1.1.1 is the unmodified upstream ghcr.io/giovantenne/lastsignal:1.1.1 image with Railway defaults baked in, running as USER 0 so the volume at /rails/storage is writable. You enter four SMTP values at deploy: SMTP_HOST, SMTP_USER, SMTP_PASS, and SMTP_FROM_EMAIL. SECRET_KEY_BASE is generated; keep it stable, since changing it signs everyone out. APP_BASE_URL and SMTP_DOMAIN follow the Railway domain. Railway outbound SMTP needs a paid plan. Set ALLOWED_EMAILS right after deploy. Sign-in is magic-link only. Update APP_BASE_URL if you add a custom domain.
How does LastSignal compare against other tools
LastSignal vs a hosted digital-legacy service (Hosted Digital-Legacy Alternative)
- Control of data: LastSignal runs on infrastructure you deploy, so your encrypted messages stay in your own Railway project.
- Operating burden: A hosted service handles uptime and mail delivery for you, while with LastSignal you own the SMTP setup and keeping the instance running.
- Cost model: LastSignal is MIT-licensed and free to self-host, and you pay only for infrastructure and your mail provider.
LastSignal vs keeping letters only in a password manager (Password Manager Alternative)
- Scheduled delivery: A password manager stores secrets but does not check on you or release them, while LastSignal sends check-ins and delivers messages if you stop responding.
- Simplicity: A password manager is quicker to set up and needs no server, so for a short list of passwords it is often the better fit.
- Recipient handling: LastSignal lets you choose who receives each encrypted message, which a shared vault does not provide on its own.
LastSignal with Docker vs Railway (Docker Self-Hosting Alternative)
- Setup effort: Running the unmodified upstream image with Docker means handling storage, SMTP, and restarts yourself, which the Railway template pre-wires.
- Persistence: The Railway template mounts a volume at /rails/storage for the SQLite data, so keep one replica to avoid split state.
- Flexibility: Docker on your own machine gives full control over networking, while Railway trades some of that for a faster managed deployment.
How to use LastSignal on Railway?
Work through these steps on the first day after the deploy finishes:
- Enter the four SMTP values at deploy time: SMTP_HOST, SMTP_USER, SMTP_PASS, and SMTP_FROM_EMAIL. Railway outbound SMTP needs a paid plan, so the project must be on one before any emails go out.
- Let the deploy finish, then open the public URL and confirm the sign-in page loads.
- Add ALLOWED_EMAILS with your own address to the lastsignal service variables. Do this right away so only you can request a magic link.
- Request a magic link from the sign-in page and check that the email arrives in your inbox.
- Leave SECRET_KEY_BASE alone. It is generated, and changing it signs everyone out.
- Keep the service at one replica, because the SQLite data on the volume at /rails/storage is local.
- Watch the health check at /up to confirm the service stays healthy.
Steps: SMTP x4 -> deploy -> ALLOWED_EMAILS -> magic link
Keep SECRET_KEY_BASE stable | Keep one replica | Health check /up
How to self host LastSignal on other VPS Services (LastSignal self hosting guide)
Clone the Repository
Clone the upstream repository at the v1.1.1 tag.
git clone --branch v1.1.1 https://github.com/giovantenne/lastsignal.git
cd lastsignal
Install Dependencies
Install Docker on your VPS.
Configure Environment Variables
Set a stable secret and your SMTP settings. Sign-in uses magic links, so SMTP is required.
SECRET_KEY_BASE=generate-a-long-random-value-and-keep-it-stable
APP_BASE_URL=https://your-domain
SMTP_HOST=your-smtp-host
SMTP_USER=your-smtp-user
SMTP_PASS=your-smtp-password
SMTP_FROM_EMAIL=your-verified-sender@your-domain
ALLOWED_EMAILS=your-address@your-domain
Set ALLOWED_EMAILS right after setup so only your address can request a sign-in link.
Start the LastSignal Application
Use the upstream flow: upstream: run the documented lastsignal container with a persistent /rails/storage path and your SMTP settings; see the upstream repository.
Pricing and License of LastSignal (LastSignal pricing)
LastSignal is MIT open-source software, so you can self-host it for free under that license.
LastSignal hosted vs self hosted comparison (Pricing, features, costs, and more)
This template packages the MIT software. No hosted digital-legacy plan prices are quoted here.
Monthly cost of self hosting LastSignal on Railway
Railway billing is usage-based and depends on RAM, CPU, volume size and the number of services.
System Requirements for Hosting LastSignal on a VPS
LastSignal is a single Rails container using SQLite on a volume, so it needs no separate database or Redis service. There is no separate Postgres or Redis service; SQLite and Solid Queue stay on the /rails/storage volume. Keep one replica.
Frequently Asked Questions (FAQs)
What do I enter at deploy?
You enter four SMTP values: SMTP_HOST, SMTP_USER, SMTP_PASS, and SMTP_FROM_EMAIL. SECRET_KEY_BASE, APP_BASE_URL and SMTP_DOMAIN are generated or referenced for you, so they are not deploy inputs.
Does Railway outbound SMTP need a paid plan?
Yes. Railway allows outbound SMTP on paid plans (Hobby or above). On a Trial or Free plan the magic-link and check-in emails cannot leave the project, so upgrade before you test sign-in or it can look like the app is broken. No plan prices are quoted here.
When should I set ALLOWED_EMAILS?
Set it right after deploy to your own address, as a comma-separated list if you need more than one. Add it before you share the URL with anyone, because without it anyone who can reach the URL can request a magic link and create an account.
Is SECRET_KEY_BASE generated?
Yes, the template generates it automatically as a 64-character secret. Do not regenerate it casually after you start using the instance.
What should I back up?
Back up the /rails/storage volume, which holds the SQLite databases and the Solid Queue data, and save your SECRET_KEY_BASE value somewhere safe.
Is this affiliated with LastSignal?
No. This is independent community packaging of giovantenne/lastsignal v1.1.1 (MIT), and it is not affiliated with or endorsed by LastSignal.
Template Content
lastsignal
ghcr.io/onepush-dev/lastsignal:1.1.1SMTP_HOST
Your SMTP server hostname (e.g. smtp-relay.brevo.com, smtp.resend.com); required for sign-in links and check-ins
SMTP_PASS
Password or API key for your SMTP server
SMTP_USER
Username for your SMTP server (often an API key name or your account email)
SMTP_FROM_EMAIL
Sender address for all LastSignal emails; must be verified with your SMTP provider
