On this page
- What does The Lounge give you over a desktop IRC client?
- How do you start The Lounge with Docker Compose?
- Which settings in config.js should you change?
- How do you create user accounts?
- How do you proxy The Lounge through Nginx with HTTPS?
- How do you connect to an IRC network the first time?
- How do you back up and update The Lounge?
- What if messages stop arriving until you reload the page?
- Questions
What does The Lounge give you over a desktop IRC client?
The Lounge is a self-hosted web client: it holds the IRC connections on the server, stores scrollback, and lets any browser resume the session with full history, push notifications and link previews. In private mode, the default, every person has their own account and networks that persist while they are away, which is the job a bouncer used to do.
It is a small Node.js program. A 1 GB plan serves a handful of users with many channels. You need Ubuntu 24.04/22.04, Debian 12/13, Rocky Linux 9 or AlmaLinux 9, Docker from the Docker tutorial (or the Docker app image) and a hostname like irc.example.net pointing to 198.51.100.24.
How do you start The Lounge with Docker Compose?
Create a folder whose data subfolder is writable by the container user (UID 1000), then describe the service:
sudo mkdir -p /opt/thelounge/data
sudo chown -R 1000:1000 /opt/thelounge/data
cd /opt/thelounge
sudo nano compose.yamlservices:
thelounge:
image: ghcr.io/thelounge/thelounge:latest
container_name: thelounge
restart: unless-stopped
ports:
- "127.0.0.1:9000:9000"
volumes:
- ./data:/var/opt/theloungesudo docker compose up -d
sudo docker compose logs --tail 20
curl -I http://127.0.0.1:9000The first start writes data/config.js and prints the version in the log. Port 9000 stays on loopback, out of reach of the internet and of the Docker rules that would bypass your firewall.
Which settings in config.js should you change?
Open /opt/thelounge/data/config.js and check these keys:
public: falsekeeps private mode with logins and persistent sessions. Leave it that way for a server on the internet.reverseProxy: truemakes The Lounge trust theX-Forwarded-Forheader from Nginx, so it logs real client addresses.prefetch: trueshows link and image previews; setprefetchStorage: trueif you want the server to cache thumbnails instead of clients loading them from third-party sites.fileUpload.enableallows sharing files through the server; leave it off unless you need it, since uploads use disk.defaultspre-fills the network form for new users, for example a host and the channels to join.
sudo docker compose restartHow do you create user accounts?
Accounts are added from the command line inside the container. The command asks for a password and whether to save logs:
sudo docker exec -it --user node thelounge thelounge add deploy
sudo docker exec -it --user node thelounge thelounge listEach user becomes a JSON file under data/users. Reset a forgotten password with thelounge reset deploy through the same docker exec prefix, and remove an account with thelounge remove.
How do you proxy The Lounge through Nginx with HTTPS?
The client uses a websocket for live messages, so forward the upgrade headers and allow long-lived connections. Install nginx, certbot and python3-certbot-nginx (EPEL on Rocky and Alma), then create /etc/nginx/conf.d/thelounge.conf:
server {
listen 80;
listen [::]:80;
server_name irc.example.net;
location / {
proxy_pass http://127.0.0.1:9000/;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 1d;
}
}sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d irc.example.netRocky and Alma need sudo setsebool -P httpd_can_network_connect 1 for the proxy. Open the web ports with sudo ufw allow 'Nginx Full', or with firewall-cmd --permanent --add-service=http --add-service=https and firewall-cmd --reload. HTTPS is also what browsers require before they allow push notifications.
How do you connect to an IRC network the first time?
Sign in at https://irc.example.net, then use the plus button to add a network. Use TLS on port 6697 where the network offers it, pick a nickname and list the channels to join. For networks that support SASL, enter your account name and password in the authentication section so your nickname is identified on connect.
The Lounge does not send email, so there is no mail setup; notifications come through the browser and the installed web app on a phone.
How do you back up and update The Lounge?
All state is in the data folder: configuration, user files and the SQLite log database.
cd /opt/thelounge
sudo tar czf ~/thelounge-$(date +%F).tar.gz data
sudo docker compose pull
sudo docker compose up -d
sudo docker exec thelounge thelounge --versionRead the changelog before large version jumps, since some releases add new keys to config.js; compare your file with the default shown in the documentation and copy in what is missing. Copy the archive off the server, for example with scp.
What if messages stop arriving until you reload the page?
That points to the websocket. Make sure both Upgrade and Connection headers are set and that proxy_read_timeout is long; the default 60 seconds cuts idle sockets. If the page loads but login fails, check sudo docker compose logs thelounge for permission errors on data and fix ownership to UID 1000.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about The Lounge IRC client
Can I install The Lounge without Docker?
Yes. Install a supported Node.js release (see installing Node.js) and use the Debian package or npm install --global thelounge. The package version creates a system user and a systemd service, with config in /etc/thelounge.
Does The Lounge replace an IRC bouncer?
For most people, yes. In private mode it stays connected and keeps history. If you also want to attach a native desktop client, a separate bouncer is still needed, because The Lounge speaks HTTP to browsers, not IRC to clients.
How much disk do logs use?
Text logs are small. Busy channels over years can grow to a few gigabytes, so check du -sh data now and then.
Can several people share one server?
Yes. Each account has separate networks, history and settings. Add as many users as the plan memory allows.
Is my IRC traffic encrypted?
Browser to server is encrypted by HTTPS. Server to IRC network is encrypted when you choose TLS for the network, usually on port 6697.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Activepieces automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Snipe-IT asset tracking
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Penpot design tool with Docker
- Planka kanban boards
- Leantime project management
- Wekan boards with Docker
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- DocuSeal document signing
- Metabase dashboards
- Appwrite backend server
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- Redmine project tracker
- CyberChef data toolbox
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM