Browse Source

Update of data bind folder for mongo

Jérôme BUISINE 5 months ago
parent
commit
9c21293189
1 changed files with 5 additions and 2 deletions
  1. 5 2
      docker-compose.yml

+ 5 - 2
docker-compose.yml

@@ -1,4 +1,4 @@
-version: '3'
+version: '3.7'
 
 services:
 
@@ -8,7 +8,10 @@ services:
         image: mongo
         restart: always
         volumes:
-            - "./data:/data/db" # get access to database files
+            - type: bind
+              source: ./data
+              target: /data/db
+              read_only: false
         ports:
            - "27017:27017"
         networks: