react-express-mongodb: store mongo data in a volume (#422)
This commit is contained in:
parent
e6b1d2755f
commit
fa1788d822
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,7 @@ services:
|
|||
restart: always
|
||||
image: mongo:4.2.0
|
||||
volumes:
|
||||
- ./data:/data/db
|
||||
- mongo_data:/data/db
|
||||
networks:
|
||||
- express-mongo
|
||||
expose:
|
||||
|
@ -42,3 +42,6 @@ services:
|
|||
networks:
|
||||
react-express:
|
||||
express-mongo:
|
||||
|
||||
volumes:
|
||||
mongo_data:
|
||||
|
|
Loading…
Reference in a new issue