Local MongoDB w/ Docker because Podman don't work on Apple Silicon Steps make dockerfile services: mongo: image: mongodb/atlas privileged: true command: | /bin/bash -c "atlas deployments setup --type local --port 27778 --bindIpAll --username root --password root --force && tail -f /dev/null" volumes: - /var/run/docker.sock:/var/run/docker.sock ports: - 27778:27778 docker compose up mongosh "mongodb://root:root@localhost:27778/?directConnection=true" With the Quotes mongorestore --archive=sampledata.archive --port=27778 --username=root --password=root first time docker compose up -d && \ mongosh "mongodb://root:root@localhost:27778/?directConnection=true" mongorestore --archive=sampledata.archive --port=27778 --username=root --password=root restart docker compose up -d && \ mongosh "mongodb://root:root@localhost:27778/?directConnection=true"