Maintained by: the Docker Community
This is the Git repo of the Docker "Official Image" for redis
(not to be confused with any official redis
image provided by redis
upstream). See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues.
The full image description on Docker Hub is generated/maintained over in the docker-library/docs repository, specifically in the redis
directory.
For more information about the full official images change lifecycle, see the "An image's source changed in Git, now what?" FAQ entry.
For outstanding redis
image PRs, check PRs with the "library/redis" label on the official-images repository. For the current "source of truth" for redis
, see the library/redis
file in the official-images repository.
To pass the value for --requirepass
password in a secure way docker secrets can be used.
version: '3'
services:
redis:
image: redis:alpine
environment:
- REDIS_PASSWORD_FILE=/run/secrets/REDIS_PASSWORD
secrets:
- REDIS_PASSWORD
secrets:
REDIS_PASSWORD:
file: ./.secrets/REDIS_PASSWORD
Default for REDIS_PASSWORD_FILE is already /run/secrets/REDIS_PASSWORD
. It is therefore here optional if the secret is named REDIS_PASSWORD
Build | Status | Badges | (per-arch) |
---|---|---|---|