Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup Bug Report #17

Open
meetkool opened this issue Mar 18, 2024 · 0 comments
Open

setup Bug Report #17

meetkool opened this issue Mar 18, 2024 · 0 comments

Comments

@meetkool
Copy link
Owner

Here are some potential issues with the provided code:

  1. The Docker command does not include a volume mount for the data directory of the MongoDB container. This means that any data stored in the database will be lost when the container is stopped or restarted. To fix this, you can add a -v flag to the docker run command to mount a volume at the appropriate location inside the container. For example:
docker run --name mongodb --restart unless-stopped -d -p 27017:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant