Skip to content

Update container directory for volume mount #1674

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

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Update container directory for volume mount #1674

merged 1 commit into from
Dec 8, 2022

Conversation

MaSpeng
Copy link
Contributor

@MaSpeng MaSpeng commented Dec 8, 2022

The documentation of the MongoDB docker image points out that the DB is stored at /data/db, described in the Caveats section under Where to Store Data.

The -v /my/own/datadir:/data/db part of the command mounts the /my/own/datadir directory from the underlying host system as /data/db inside the container, where MongoDB by default will write its data files.

The [documentation](https://hub.docker.com/_/mongo) of the MongoDB docker image points out that the DB is stored at `/data/db`, described in the **Caveats** section under **Where to Store Data**.
> The -v /my/own/datadir:/data/db part of the command mounts the `/my/own/datadir` directory from the underlying host system as `/data/db` inside the container, where MongoDB by default will write its data files.
@dunglas dunglas merged commit a887fae into api-platform:3.0 Dec 8, 2022
@dunglas
Copy link
Member

dunglas commented Dec 8, 2022

Thanks!

@MaSpeng MaSpeng deleted the patch-2 branch December 8, 2022 09:03
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

Successfully merging this pull request may close these issues.

2 participants