mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 07:18:06 +02:00
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
|
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…
Add table
Add a link
Reference in a new issue