Log inSign up

An always-connected IRC client with The Lounge

Start the official ghcr.io/thelounge/thelounge image with Docker Compose on 127.0.0.1:9000, set reverseProxy: true in the generated config.js, add an account with thelounge add deploy and publish it through Nginx with a Let's Encrypt certificate. Your IRC networks stay connected while your browser and phone come and go.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

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.yaml
services:
  thelounge:
    image: ghcr.io/thelounge/thelounge:latest
    container_name: thelounge
    restart: unless-stopped
    ports:
      - "127.0.0.1:9000:9000"
    volumes:
      - ./data:/var/opt/thelounge
sudo docker compose up -d
sudo docker compose logs --tail 20
curl -I http://127.0.0.1:9000

The 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: false keeps private mode with logins and persistent sessions. Leave it that way for a server on the internet.
  • reverseProxy: true makes The Lounge trust the X-Forwarded-For header from Nginx, so it logs real client addresses.
  • prefetch: true shows link and image previews; set prefetchStorage: true if you want the server to cache thumbnails instead of clients loading them from third-party sites.
  • fileUpload.enable allows sharing files through the server; leave it off unless you need it, since uploads use disk.
  • defaults pre-fills the network form for new users, for example a host and the channels to join.
sudo docker compose restart

How 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 list

Each 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.net

Rocky 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 --version

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

All prices
PlanFits becauseSizeMonthlyOrder from
A1-1a few users and many channels1 vCPU, 1 GB RAM, 25 GB NVMe$3.60/mo$43.20 for 12 months
A1-2larger groups with previews and uploads1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months

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.