simple Redis 7-alpine docker image that supports reading the password from a Docker Swarm Secrets file
  • Dockerfile 50.2%
  • Shell 49.8%
Find a file
2025-12-27 14:55:23 +00:00
Dockerfile initial files for 7-alpine 2025-12-27 14:55:23 +00:00
README.md initial files for 7-alpine 2025-12-27 14:55:23 +00:00
swarm_entry.sh initial files for 7-alpine 2025-12-27 14:55:23 +00:00

Swarm Redis

A ready-to-bake Docker image that allows you to specify the password as a file. This can also be used outside Docker Swarm if you require your instance's password to be defined in a file.

Get the image

Use Docker to install Swarm Redis. If you're here, I feel like you should know that bit already.

docker pull git.ripples.gay/ripples1253/swarm_redis:7-alpine

Use the image

The path to the password file is defined as an environment variable, REDIS_PASSWORD_FILE. Here's an example swarm stack file (that probably doesn't work, I'm writing this off the top of my head)

version: '3.8'

services:
  postgres:
    image: git.ripples.gay/ripples1253/swarm_redis:7-alpine
    environment:
      REDIS_PASSWORD_FILE: /run/secrets/redis_password
    secrets:
      - redis_password

secrets:
  redis_password:

Contributing

Unfortunately, my Git instance doesn't allow public registration at the minute. In the future, this may change. If you desperately need something known, please contact me on Discord.

Licensed under the Opinionated Queer License.