Setup Redis & Go with Docker Compose ( Redis CLI setup included )

Опубликовано: 28 Сентябрь 2024
на канале: Jason Cheung
2,940
30

How to setup Go (golang) and Redis with Docker Compose. Also shows how to use Redis CLI to read keys and config within the docker container itself. In addition a custom config for redis is added which can be customized throughout. If done, the container might need to be rebuilt.
Instead of building the Go dockerfile, the image can be used instead. Just remember to build the image and add it like the redis service. If you need a video on this, let me know.

I've added the code directly to avoid wasting time watching me type it out line by line.
For development the required package is: https://github.com/go-redis/redis
go get github.com/go-redis/redis and make sure the correct type is imported in the code and compose file. This doesn't use go modules but I can make another video on this if requested .

Code: https://github.com/Jasoncheung94/yout...

––––––––––––––––––––––––––––––
Track: Good Evening — Amine Maxwell [Audio Library Release]
Music provided by Audio Library Plus
Watch:    • Good Evening — Amine Maxwell | Free B...  
Free Download / Stream: https://alplus.io/good-evening
––––––––––––––––––––––––––––––