Add Docker support for reproduction repos #2493
Replies: 2 comments
-
For people out there with the same struggle, you can just run MongoDB from Docker as a standalone image and map port 27017 of your host machine to it. It's explained in the MongoDB docs. The only difference is that in their guide, the run command doesn't map the ports (doesn't specify the docker pull mongodb/mongodb-community-server
docker run --name mongo -p 27017:27017 -d mongodb/mongodb-community-server:latest After this, you'd get MongoDB running in the background and you can connect to it over If you don't expose the port (
Still, it'd be ideal if Payload provides a ready-made container with the proper MongoDB versions that it supports and whatnot. |
Beta Was this translation helpful? Give feedback.
-
If you set node_env to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to report a bug and I'm following the reproduction guide. However, I'm using MongoDB Atlas for my regular projects and really have no need for a database locally. Therefore, I don't have MongoDB on my machine at all. Since it's a company-provided machine, installing new software isn't that straightforward, due to security policies.
I'd be awesome if Payload also provided a ready-to-go docker image that you could just build and get up and running instantly. Perhaps the dev server could be baked into it as well, so you don't even need to manage your Node.js versions.
This would greatly reduce the friction with reporting (and maybe even fixing) issues, leading to more contributions and faster iterations of the product.
Beta Was this translation helpful? Give feedback.
All reactions