# Self-host lldap

> A lightweight LDAP server with a friendly web UI, built for homelab and small-team authentication.

- Page: https://levelrail.com/templates/lldap/
- JSON: https://levelrail.com/templates/lldap.json
- Category: Security
- Licence: GPL-3.0-only (Copyleft license)
- Source: https://github.com/lldap/lldap
- Upstream docs: https://github.com/lldap/lldap

## Requirements
- Memory: about 128 MiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: v0.6.3

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| lldap | lldap/lldap | v0.6.3 | 17170, 3890 | lldap_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| lldap | LLDAP_JWT_SECRET | generated |
| lldap | LLDAP_KEY_SEED | generated |
| lldap | LLDAP_LDAP_BASE_DN | preset |
| lldap | LLDAP_LDAP_USER_PASS | generated |

## Deploy

### CLI

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

### API

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

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

## Questions

### Can I deploy lldap 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 lldap, 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 lldap/lldap:v0.6.3 is what you deploy there.

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