Home > Enterprise >  How Disable logs in mongodb container?
How Disable logs in mongodb container?

Time:02-24

I'm doing a server with nodejs and mongodb. I'm using mongodb as a container but I'm trying hide the logs using the next code in docker-compose.yml

mongodb:
  image: mongo
  logging:
    driver: "none"

I tried without quotes but It doesn't works.

Thanks you.

CodePudding user response:

Well, I have been following this thread I've omitted the whole log and it's much better in my case:

mongo:
    command: mongod --quiet --logpath /dev/null 
  • Related