Sfoglia il codice sorgente

Update of data bind folder for mongo

Jérôme BUISINE 5 anni fa
parent
commit
9c21293189
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      docker-compose.yml

+ 5 - 2
docker-compose.yml

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