Deploy The Lounge
Self-hosted web IRC client that stays connected while you are away
The Lounge
Just deployed
/var/opt/thelounge
Deploy and Host The Lounge on Railway
The Lounge is an open-source, self-hosted web IRC client (MIT licence). Its server stays connected to your IRC networks while your browser is closed, keeps the scrollback, and lets you pick up the same session from any desktop or phone. It works like a bouncer and a client in one web app.
About Hosting The Lounge
The Lounge is a single Node.js server. It holds the IRC connections, stores chat history in SQLite, and serves the web interface over HTTP and WebSockets. Hosting it needs one always-on process, a persistent disk for accounts, settings, history and uploads, and HTTPS in front of it. This template runs The Lounge 4.5.2 from the official image, pinned by digest, behind a Railway domain with a volume at /var/opt/thelounge. On the first start it creates your account from a generated password before the web server opens, so nobody else can claim the instance. It runs in private mode, with no public sign-up.
Common Use Cases
- Stay present in project or community IRC channels (Libera.Chat, OFTC) without keeping a computer on
- Read and answer IRC from a phone, with history kept while you were away
- Give a small team browser access to IRC, with one account each and nothing to install
Dependencies for The Lounge Hosting
- The Lounge service, built from aalfath/thelounge-railway-template on the official
thelounge/thelounge:4.5.2image - A Railway volume at
/var/opt/theloungefor accounts, settings, chat history and uploads
Deployment Dependencies
Implementation Details
What you get: one service, The Lounge, with a public HTTPS domain, a health check on / and a volume. There is nothing to fill in when you deploy.
After deploy:
- Open the service's Variables tab and copy
THELOUNGE_ADMIN_PASSWORD(generated for you). The user name isTHELOUNGE_ADMIN_USER(adminby default). - Open the public URL and sign in.
- Connect to a network. The form is pre-filled with Libera.Chat over TLS; Libera.Chat asks hosted clients to sign in with SASL, so add your NickServ account in the form.
- Change your password under Settings. The two variables are used only while no account exists, so later changes to them don't touch your account.
More users: open the service's shell and run su node -s /bin/sh -c "thelounge add NAME". Other settings (link previews, themes, LDAP, history clean-up) go in /var/opt/thelounge/config.local.js on the volume, for example module.exports = { prefetch: true };, then redeploy.
Resources: about 50 MB RAM at idle with one user, so it fits Railway's 0.5 GB plan limit.
Updates: the service builds from the template's GitHub repo. When a new version is pinned there, Railway shows you an update notice and you choose when to apply it. Read the repo's CHANGELOG.md first. Your volume, accounts and history are kept.
Why Deploy The Lounge 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 The Lounge 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
The Lounge
aalfath/thelounge-railway-template