Default config for runsvdir-start is limiting redis client connections by limiting open file descriptors in Docker

Summary

The issue "Default config for runsvdir-start is limiting redis client connections by limiting open file descriptors" (Issue #7831 (closed)) has been resolved for standard installations. However, this fix does not work for Docker installations

Steps to reproduce

  1. Use a Docker installation of GitLab.
  2. Set the number of redis maxclients connections to greater than 50,000.

What is the current bug behavior?

In Docker installations, the upper limit on client connections for a Redis server is still restricted to 50,000 connections due to the ulimit settings in the runsvdir-start file.

What is the expected correct behavior?

The value of redis maxclients should be able to be set to a value higher than 50,000, even in Docker installations, just as it can be in regular Omnibus installations after the fix for Issue #7831 (closed).

Proposed solution

A Customer that reported it via internal Zendesk ticket proposed a solution in this commit