Deploy LinkStack
Self-hosted link-in-bio page, a Linktree alternative, with SQLite storage
LinkStack
Just deployed
/htdocs
Deploy and Host LinkStack on Railway
LinkStack is an open-source, self-hosted link-in-bio platform, an alternative to Linktree. You get a single profile page that collects your links, social profiles and contact details, with themes, a button editor and per-link click counts. One installation can host pages for many users, each with its own handle and login.
About Hosting LinkStack
LinkStack is a PHP (Laravel) app served by Apache. This template builds the official linkstackorg/linkstack image (version 4.8.8, pinned by digest) from a public GitHub repo and runs it as one service with a volume at /htdocs. Data lives in SQLite on that volume, so no separate database is needed. On first start, a small wrapper copies LinkStack onto the volume, creates the admin account from your email and a generated password, sets an app key, turns off debug mode and closes registration, all before the web server starts, so the open web installer is never exposed. Railway provides HTTPS and the public domain.
Common Use Cases
- A personal link-in-bio page for social media profiles, on your own domain
- Link pages for a team, club or small business, each member with their own handle
- A Linktree replacement you host and control yourself, with per-link click counts
Dependencies for LinkStack Hosting
- The LinkStack service, built from aalfath/linkstack-railway-template (official image
linkstackorg/linkstack:v4.8.8) - A Railway volume mounted at
/htdocs(app files, settings and the SQLite database)
Deployment Dependencies
Implementation Details
You enter one value, LINKSTACK_ADMIN_EMAIL. After the deploy, open the LinkStack service's Variables tab to read the generated LINKSTACK_ADMIN_PASSWORD, then log in at https://YOUR-DOMAIN/login. Both are read on the first start only: change the email or password later inside LinkStack. Your page is at https://YOUR-DOMAIN/@admin.
Email (SMTP), registration, the homepage profile and other settings are in Admin → Config. Updates to this template's repo reach you as Railway update notices. An existing install moves to a newer LinkStack version with the built-in updater (Admin → Update), which backs up first.
Why Deploy LinkStack on Railway?
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 LinkStack 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.
Template Content
LinkStack
aalfath/linkstack-railway-templateLINKSTACK_ADMIN_EMAIL
Email address for the LinkStack admin account; you log in with it. Read on first start only.
