Marketplace
Databases

Redis

Redis 7, password-protected.

Deploy this app

About

Installs Redis Server and sets a generated password (requirepass), suitable for use as a cache or queue backend from other instances on your private network.

Restrict the firewall's source CIDR to your own private subnet. Password is in /root/redis-credentials.txt.

Ports opened by the installer

6379/tcp · Redis

Install script (runs as cloud-init user-data on first boot)

#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get install -y redis-server
DB_PASS=$(openssl rand -base64 18 | tr -dc 'A-Za-z0-9')
sed -i "s/^bind .*/bind 0.0.0.0/" /etc/redis/redis.conf
sed -i "s/^# requirepass .*/requirepass $DB_PASS/" /etc/redis/redis.conf
sed -i "s/^protected-mode yes/protected-mode no/" /etc/redis/redis.conf
systemctl restart redis-server
echo "Redis password: $DB_PASS" > /root/redis-credentials.txt