---
title: "Deploy LinkStack"
description: "Self-hosted link-in-bio page, a Linktree alternative, with SQLite storage"
category: "Other"
url: https://railway.com/deploy/linkstack-1
---

# Deploy LinkStack

Self-hosted link-in-bio page, a Linktree alternative, with SQLite storage

**[Deploy LinkStack on Railway](https://railway.com/template/linkstack-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/linkstack-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### LinkStack https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/linkstack.png

- **Source:** https://github.com/aalfath/linkstack-railway-template
- **Health check:** /
- **Public domain:** Yes

## Documentation

# 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](https://github.com/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

* [LinkStack](https://linkstack.org) and its [documentation](https://docs.linkstack.org)
* [LinkStack 4.8.8 release](https://github.com/LinkStackOrg/LinkStack/releases/tag/v4.8.8)
* [Official Docker image](https://github.com/LinkStackOrg/linkstack-docker)

### 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.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/linkstack-1
