🩹 Root docker-compose: use volume for mongo data
This commit is contained in:
committed by
Anton Shepilov
parent
1ca6b890a6
commit
cbc111be7d
+3
-1
@@ -5,7 +5,7 @@ services:
|
|||||||
container_name: mongo
|
container_name: mongo
|
||||||
image: mongo
|
image: mongo
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker-data/mongo:/data/db
|
- mongo-data:/data/db
|
||||||
networks:
|
networks:
|
||||||
- tdrive_network
|
- tdrive_network
|
||||||
|
|
||||||
@@ -49,3 +49,5 @@ networks:
|
|||||||
tdrive_network:
|
tdrive_network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mongo-data:
|
||||||
|
|||||||
Reference in New Issue
Block a user