private void setMemoryQuotas() {
        logger().debug("Custom service memory quotas: {}", customServiceQuotas);

        final FormBody.Builder quotaBuilder = new FormBody.Builder();
        for (CouchbaseService service : enabledServices) {
            if (!service.hasQuota()) {
                continue;
            }

            int quota = customServiceQuotas.getOrDefault(service, service.getMinimumQuotaMb());
            if (CouchbaseService.KV.equals(service)) {
                quotaBuilder.add("memoryQuota", Integer.toString(quota));
            } else {
                quotaBuilder.add(service.getIdentifier() + "MemoryQuota", Integer.toString(quota));
            }
        }

        @Cleanup
        Response response = doHttpRequest(MGMT_PORT, "/pools/default", "POST", quotaBuilder.build(), false);

        checkSuccessfulResponse(response, "Could not configure service memory quotas");
    }
Sets the memory quotas for each enabled service.
<p>
If there is no explicit custom quota defined, the default minimum quota will be used.
modules/couchbase/src/main/java/org/testcontainers/couchbase/CouchbaseContainer.java