Question Details

No question body available.

Tags

mongodb docker-compose

Answers (1)

March 17, 2026 Score: 0 Rep: 1,046 Quality: Low Completeness: 40%

MongoDB isn’t actually crashing — it starts fine.

The problem is that Docker is killing the container after ~1 minute, most likely due to running out of memory (OOM).

Your logs show:

cache_size=30530M

MongoDB is trying to use ~30GB of RAM, which is way too much unless your system/Docker has that available.