We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d49110 commit 5fa52ebCopy full SHA for 5fa52eb
redis/README.md
@@ -0,0 +1,21 @@
1
+# Redis w/ Docker Compose
2
+
3
+Password authentication is achieved through running a custom redis-server command to require the `"password"` password.
4
5
+## Enter the Container w/ Bash
6
7
+`docker-compose exec --user root db /bin/bash`
8
9
+## Enter the Redis Shell
10
11
+`docker-compose exec --user root db redis-cli`
12
13
+## Super User Authentication
14
15
+Password: `password`
16
17
+While inside the shell, run the following:
18
19
+```
20
+AUTH "password"
21
redis/docker-compose.yml
@@ -0,0 +1,8 @@
+version: '3'
+services:
+ db:
+ image: redis:latest
+ command: redis-server --requirepass password
+ ports:
+ - 6379:6379
0 commit comments