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

master
Nick Sieger 10 months ago committed by GitHub
parent e6b1d2755f
commit fa1788d822
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -34,7 +34,7 @@ services:
restart: always restart: always
image: mongo:4.2.0 image: mongo:4.2.0
volumes: volumes:
- ./data:/data/db - mongo_data:/data/db
networks: networks:
- express-mongo - express-mongo
expose: expose:
@ -42,3 +42,6 @@ services:
networks: networks:
react-express: react-express:
express-mongo: express-mongo:
volumes:
mongo_data:

Loading…
Cancel
Save