react-express-mongodb: store mongo data in a volume (#422)

This commit is contained in:
Nick Sieger 2024-03-05 11:20:40 -06:00 committed by GitHub
parent e6b1d2755f
commit fa1788d822
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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: