Redis with Docker Compose

Redis with persistence and a password. The services are ticked below: set your project name and port, then copy compose.yaml and .env.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Services

NoteReplace every change-me in .env with a long random password (openssl rand -base64 24) before the first start: databases keep the first password they are given.
NoteDatabase ports are bound to 127.0.0.1, so only this server can reach them. Never publish them on all addresses: Docker's ports bypass UFW.

compose.yaml

# compose.yaml, generated at frabs.net/tools/docker-compose-generator/
services:
  redis:
    image: redis:7-alpine
    restart: unless-stopped
    command: ["redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD}"]
    ports:
      - "127.0.0.1:6379:6379"
    volumes:
      - redis:/data

volumes:
  redis:

.env

# .env (keep out of version control)
REDIS_PASSWORD=change-me

Start It

docker compose up -d && docker compose ps

Docker Compose Generator

What you get

Servicesredis
ImagesPinned to a major version
DataNamed volumes
Secrets.env file
DatabasesNot published to the internet

Redis with persistence and a password.

Start it with docker compose up -d; update later with docker compose pull && docker compose up -d.

Questions

How do I run Redis with Docker Compose?
Save compose.yaml and .env in an empty folder, set real passwords in .env, then run docker compose up -d.

Run VMs for other people?

Frabs stops spam, scans and floods leaving your customers' VMs, before the abuse report lands.