# Self-host Redis Commander

> A web interface to browse and edit Redis keys. It comes with its own Redis service, and both the Redis password and the web login password are generated for you and shown in the deployment variables.

- Page: https://levelrail.com/templates/redis-commander/
- JSON: https://levelrail.com/templates/redis-commander.json
- Category: Database Tools
- Licence: MIT (Permissive license)
- Source: https://github.com/joeferner/redis-commander
- Upstream docs: https://github.com/joeferner/redis-commander

## Requirements
- Memory: about 128 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 7.4.7-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| redis | redis | 7.4.7-alpine | none | redis_data -> /data |
| redis-commander | ghcr.io/joeferner/redis-commander | 0.9.0 | 8081 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| redis | REDISCLI_AUTH | generated |
| redis-commander | HTTP_PASSWORD | generated |
| redis-commander | HTTP_USER | preset |
| redis-commander | REDIS_HOSTS | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy redis-commander --name my-redis-commander
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/redis-commander/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. Sign in as admin with the generated password. To browse another Redis, change REDIS_HOSTS in the deployment settings.

## Questions

### Can I deploy Redis Commander 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 Redis Commander, 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 redis:7.4.7-alpine, ghcr.io/joeferner/redis-commander:0.9.0 is what you deploy there.

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