git clone https://github.com/AzagraMac/redis-docker.git
cd redis-docker
docker build -t yourname/redis:tag
docker compose up -d
docker logs -f redis
output:
vm.overcommit_memory = 1
10:C 08 Dec 2023 21:17:17.697 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:C 08 Dec 2023 21:17:17.698 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=10, just started
10:C 08 Dec 2023 21:17:17.698 * Configuration loaded
10:M 08 Dec 2023 21:17:17.698 * monotonic clock: POSIX clock_gettime
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 7.2.3 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 10
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | https://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
10:M 08 Dec 2023 21:17:17.700 * Server initialized
10:M 08 Dec 2023 21:17:17.700 * Ready to accept connections tcp