# Self-host ejabberd

> Robust, scalable XMPP chat and messaging server from ProcessOne. Runs with the default configuration and stores its database on a volume.

- Page: https://levelrail.com/templates/ejabberd/
- JSON: https://levelrail.com/templates/ejabberd.json
- Category: Communication
- Licence: GPL-2.0-only (Copyleft license)
- Source: https://github.com/processone/ejabberd
- Upstream docs: https://docs.ejabberd.im/

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| ejabberd | ghcr.io/processone/ejabberd:26.09@sha256 | ec5cf7bc85627fd9bde47309a34600d6c16895e9808807ec9ff57426f2508115 | 5280, 5222 | database -> /opt/ejabberd/database |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/ejabberd/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. Register users with the container command ejabberdctl register, then connect an XMPP client to port 5222. The web admin is on port 5280.

## Questions

### Can I deploy ejabberd 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 ejabberd, 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 ghcr.io/processone/ejabberd:26.09@sha256:ec5cf7bc85627fd9bde47309a34600d6c16895e9808807ec9ff57426f2508115 is what you deploy there.

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