# Self-host The Lounge

> A modern web IRC client that stays connected for you, so you can read what you missed from any device. Users are created from the command line, and chat history is kept on a volume.

- Page: https://levelrail.com/templates/thelounge/
- JSON: https://levelrail.com/templates/thelounge.json
- Category: Communication
- Licence: MIT (Permissive license)
- Source: https://github.com/thelounge/thelounge
- Upstream docs: https://thelounge.chat/docs

## Requirements
- Memory: about 256 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 4.5.2

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| thelounge | thelounge/thelounge | 4.5.2 | 9000 | config -> /var/opt/thelounge |

## Deploy

### CLI

```bash
levelrail-cli templates deploy thelounge --name my-thelounge
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/thelounge/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## First run
1. Create your first user from the container terminal with thelounge add followed by a username, then sign in at the address.

## Questions

### Can I deploy The Lounge on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for The Lounge, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image thelounge/thelounge:4.5.2 is what you deploy there.

Self-host The Lounge, The Lounge docker compose file, deploy The Lounge on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
