Disable console.log in production environment for Directus

Hi. I am hosting Directus using Docker compose. If I run docker logs containerId , it shows all the logs. I have setup retension values for logs in Flows but couldn’t find a config that would disable logs in terminal. In Next.js for example, I can just set compilerOption’s removeConsole option to true and it removes all production logs. So is there a way to disable console logs in Directus? TIA.

I am not aware of an option to disable console output completely, it might be doable on docker level somehow.
But for Directus you can at least set the log level to silent to prevent any logging output.

directus:
   environment:
      LOG_LEVEL: "silent"

Besides disabling logging as Nik pointed out you can tell docker to not log any output by setting the logging driver to none for your container:

services:
  website:
    image: nginx
    logging:
      driver: none

However I would recommend neither, I’d say set LOG_LEVEL to fatal or error as lowest setting that way you still have error logging when something goes wrong.