For some reason official docker image for Redis was inifinitely taking memory, leading eventually to OOM error. I added a custom config, which limits memory usage and forces Redis to clean up rarely used keys in case it starts to exceed memory limit.

Besides, i disabled persistent storage which is enabled by default. Now Redis only uses RAM for cache and is limited to 512MB by default.