diff --git a/docker-compose.yml b/docker-compose.yml index 31d9080..d5050a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -265,6 +265,7 @@ services: container_name: ${REDIS_CONTAINER_NAME-} ports: - 6379:6379 + command: redis-server --requirepass "${REDIS_PASSWORD-}" restart: ${REDIS_RESTART_POLICY-no} redisinsight: image: redislabs/redisinsight:${REDISINSIGHT_VERSION-1.14.0} diff --git a/docs/redis.md b/docs/redis.md index 97316b3..6a0a74d 100644 --- a/docs/redis.md +++ b/docs/redis.md @@ -12,4 +12,5 @@ docker compose up -d redis | -------------------- | ----------- | | REDIS_VERSION | 7.0.5 | | REDIS_CONTAINER_NAME | | +| REDIS_PASSWORD | | | REDIS_RESTART_POLICY | no |