Skip to content

Commit fa1788d

Browse files
authored
react-express-mongodb: store mongo data in a volume (#422)
1 parent e6b1d27 commit fa1788d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

react-express-mongodb/compose.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ services:
3434
restart: always
3535
image: mongo:4.2.0
3636
volumes:
37-
- ./data:/data/db
37+
- mongo_data:/data/db
3838
networks:
3939
- express-mongo
4040
expose:
4141
- 27017
4242
networks:
4343
react-express:
4444
express-mongo:
45+
46+
volumes:
47+
mongo_data:

0 commit comments

Comments
 (0)