diff --git a/redis/README.md b/redis/README.md new file mode 100644 index 0000000..543822f --- /dev/null +++ b/redis/README.md @@ -0,0 +1,21 @@ +# Redis w/ Docker Compose + +Password authentication is achieved through running a custom redis-server command to require the `"password"` password. + +## Enter the Container w/ Bash + +`docker-compose exec --user root db /bin/bash` + +## Enter the Redis Shell + +`docker-compose exec --user root db redis-cli` + +## Super User Authentication + +Password: `password` + +While inside the shell, run the following: + +``` +AUTH "password" +``` diff --git a/redis/docker-compose.yml b/redis/docker-compose.yml new file mode 100644 index 0000000..45d307e --- /dev/null +++ b/redis/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3' + +services: + db: + image: redis:latest + command: redis-server --requirepass password + ports: + - 6379:6379 \ No newline at end of file