← Back to Guides
Profile image for Humberto Leal

By Humberto Leal

Published 25th March 2022

Deploy Redis Commander on Northflank

Redis-Commander is a Node.js web application that can be used to view, edit and manage your Redis databases from the browser. Redis-Commander allows you to connect to multiple Redis servers instances simultaneously. It includes a terminal, documentation (npm site and GitHub repository) and import/export functionality. The following is a guide to get Redis-Commander deployed on Northflank.

Prerequisite

A Redis addon deployed on Northflank or a KeyDB service created with internal host and password. You can check out this page about Managed Redis or this guide on how to deploy KeyDB on Northflank for guidance.

Service creation

  1. Create a new service.

  2. Select Deployment as the Service type.

    redis_commander_service_creation

  3. Use the following external image rediscommander/redis-commander:latest as the image path.

    rc_image_path

Environment Variables

The redis-commander service can be configured through environment variables.

  1. Provide the REDIS_HOST, REDIS_PORT and REDIS_PASSWORD environment variables. Make sure credentials provided are appropriate according to the Redis addon or KeyDB service you’re planning to connect to.

    rc_host_password_port

  2. If the service is planned to be exposed on the internet, make sure to provide HTTP_USER and HTTP_PASSWORD environment variables to enforce authentication.

    • For the `HTTP_PASSWORD` you can generate one through the `Generate secret values` on the `Environment` section. Use that to generate a secure password.

    secret_value

  3. If the Redis server is deployed with TLS, provide the REDIS_TLS environment variable set to true. This will make sure redis-commander will use TLS settings when connecting to the Redis server.

    env_tls

Networking

Make sure the port 8081 is configured on the UI. Select HTTP protocol and toggle the public expose box so it can be accessed through a public domain.

From now on when deployment is complete the user interface will be public, which means anyone can see and manage the Redis server data. To avoid this make sure to provide HTTP_USER and HTTP_PASSWORD environment variables. Check the Environment variables section of this guide for further information.

rc_networking

Deploy and test

  1. Once everything is configured, click on Create service.

  2. Wait for the container to start up and then open the code.run service URL provided on the right top corner of the service dashboard.

  3. If authentication is enabled provide the credentials.

    rc_credentials

  4. Once there you should be able to see the Redis instance, its data, as well as to run commands and modify data from the user interface.

    rc_ui

Using Northflank to deploy Redis Commander

Northflank allows you to deploy your code and databases within minutes. Sign up for a Northflank account and create a free project to get started.

  • Deployment of external Docker images
  • Networking: Private and optional public load balancing as well as Northflank local proxy
  • Custom domains with DNS
  • Multiple read and write replicas
  • Observe & monitor with real-time metrics & logs
  • Low latency and high performance
  • Backup, restore and fork databases

Share this article with your network