docker-compose -p redis up -d- Host: host.docker.internal
- Port: 6379
- Name (can be random): redis
- Open created redis connection
- Open
CLItab - Run
acl setuser <username> on >password> ~* +@allcommand (e.g.acl setuser admin on >test ~* +@all)
Open your web app and use connection string like this redis://<username>:<password>@localhost:6379/<database_number> e.g. redis://admin:test@localhost:6379/0
You can use redis://<username>@localhost:6379/<database_number> if you don't want to use password in string or you can use redis://localhost:6379/<database_number> if you don't want to use username and password in string
Note: In some cases (if you run web app in docker container) you should use host.docker.internal instead of localhost in connection string
acl list- list all usersacl whoami- show current useracl setuser <username> on >password> ~* +@all- create new user with all permissionsacl setuser <username> off- disable useracl setuser <username> on- enable useracl deluser <username>- remove user