We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a954fc commit a887faeCopy full SHA for a887fae
core/mongodb.md
@@ -54,9 +54,9 @@ Add a MongoDB image to the docker-compose file:
54
# You should definitely change the password in production
55
- MONGO_INITDB_ROOT_PASSWORD=!ChangeMe!
56
volumes:
57
- - db-data:/var/lib/mongodb/data:rw
+ - db-data:/data/db:rw
58
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
59
- # - ./docker/db/data:/var/lib/mongodb/data:rw
+ # - ./docker/db/data:/data/db:rw
60
ports:
61
- "27017:27017"
62
# ...
0 commit comments