- Machine with docker
Note: ** The local development tested only on mac os with Intel arch with colima as docker engine. ** To install colima use brew
brew install colimamkdir .mongo-data
docker run -d --name nest2d_mongo -p 27017:27017 --user "$(id -u):$(id -g)" -v "$(pwd)/.mongo-data":/data/db mongoTo restore the mongo from backup run the command
mongorestore --uri="mongodb://localhost:27017" --gzip --archive=mongo_backup_latest.gz --nsInclude="nest2d-v2.*"To stop the container runs
docker stop nest2d_mongoTo clean data
rm -rf .mongo-dataThe Mongo is the only one storage need for run project localy, all files (dxf, svg, and user avatars) saved by Mongo GridFS. It's implement in purpuse to make the developer life easier.
docker stack deploy -c docker-stack-external.yml nest2dThe command runs the two workers user file processing and the nesting one. Each workes will have the replication equals to one.
docker compose -f docker-stack-external.yml up