parent
2d49110304
commit
5fa52ebed8
@ -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"
|
||||||
|
```
|
@ -0,0 +1,8 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: redis:latest
|
||||||
|
command: redis-server --requirepass password
|
||||||
|
ports:
|
||||||
|
- 6379:6379
|
Loading…
Reference in new issue