Docker compose cant log into strapi backend

Hi
I have deployed a multi container app into azure app services via docker compose. I have three containers one with my frontend, another with an strapi backend and a third one with and nginx working as inverse proxy.
I followed the docs to set the nginx with strapi and every call to the api seems to work fine.

Also all works fine when i deploy it outside docker compose, but when i deploy it inside. I have a problem trying to login into my app:

Im getting this error:

POST http://localhost/backend/auth/local 500 (Internal Server Error)

error TypeError: Cannot read property 'prototype' of undefined
at module.exports (/usr/src/app/node_modules/promise-redis/index.js:17:31)
at Object.<anonymous> (/usr/src/app/node_modules/koa2-ratelimit/src/RedisStore.js:22:39)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/usr/src/app/node_modules/koa2-ratelimit/src/index.js:5:20)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.get RateLimit [as RateLimit] (/usr/src/app/node_modules/strapi-plugin-users-permissions/config/policies/rateLimit.js:5:12)
at module.exports (/usr/src/app/node_modules/strapi-plugin-users-permissions/config/policies/rateLimit.js:21:24)
at dispatch (/usr/src/app/node_modules/koa-compose/index.js:42:32)
at module.exports (/usr/src/app/node_modules/strapi-plugin-users-permissions/config/policies/permissions.js:88:9)
at async /usr/src/app/node_modules/strapi-utils/lib/policy.js:68:5
at async /usr/src/app/node_modules/strapi/lib/middlewares/parser/index.js:48:23
at async /usr/src/app/node_modules/strapi/lib/middlewares/xss/index.js:26:9

Any clue on whats happening?

Any help is really welcome.

Thanks