CodingGarden / entropychat.app

A discord clone made by the Coding Garden Community.
https://entropychat.app
103 stars 37 forks source link

Docker Mongodb data persistence windows #20

Closed CallumChaney closed 4 years ago

CallumChaney commented 4 years ago

The default Docker setup on Windows and OS X uses a VirtualBox VM to host the Docker daemon. VM file transfer is not compatible with the memory mapped files used by MongoDB. So you cannot map a host folder to store data.

You need to create a new volume in the docker-compose file and map it to that instead. I.E.

...
 db:
     ... 
     volumes: 
         -mongodb:data/db
 ...
 volumes:
     ...
     mongodb: