Skip to content

Commit c1dcf7f

Browse files
Add volume for persistent data storage to Mongo
1 parent 58e8944 commit c1dcf7f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ services:
1616
- 8000:8000
1717
mongo:
1818
image: mongo
19+
volumes:
20+
- mongodb:/data/db
21+
22+
volumes:
23+
mongodb:

0 commit comments

Comments
 (0)