Skip to content

Commit a887fae

Browse files
authored
Update container directory for volume mount (#1674)
1 parent 5a954fc commit a887fae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/mongodb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ Add a MongoDB image to the docker-compose file:
5454
# You should definitely change the password in production
5555
- MONGO_INITDB_ROOT_PASSWORD=!ChangeMe!
5656
volumes:
57-
- db-data:/var/lib/mongodb/data:rw
57+
- db-data:/data/db:rw
5858
# 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
59+
# - ./docker/db/data:/data/db:rw
6060
ports:
6161
- "27017:27017"
6262
# ...

0 commit comments

Comments
 (0)