瀏覽代碼

separating syn compose file

Arian Acosta 7 年之前
父節點
當前提交
42fc8b7b57
共有 3 個文件被更改,包括 19 次插入7 次删除
  1. 17 0
      docker-compose.sync.yml
  2. 1 6
      docker-compose.yml
  3. 1 1
      docker-sync.yml

+ 17 - 0
docker-compose.sync.yml

@@ -0,0 +1,17 @@
+version: '2'
+
+services:
+
+### Applications Code Container #############################
+
+    applications:
+      image: tianon/true
+      volumes:
+        - applications-sync:/var/www:nocopy # nocopy is required
+
+### Volumes Setup #############################################
+
+volumes:
+  applications-sync:
+    external:
+      name: "applications-host-sync"

+ 1 - 6
docker-compose.yml

@@ -7,9 +7,7 @@ services:
     applications:
       image: tianon/true
       volumes:
-#        - ${APPLICATION}:/var/www
-        - applications-sync:/var/www:nocopy # nocopy is required
-
+        - ${APPLICATION}:/var/www
 
 ### Workspace Utilities Container ###########################
 
@@ -670,6 +668,3 @@ volumes:
     driver: "local"
   elasticsearch-plugins:
     driver: "local"
-  applications-sync:
-    external:
-      name: "applications-host-sync"

+ 1 - 1
docker-sync.yml

@@ -6,5 +6,5 @@ syncs:
   applications-host-sync: # name of the sync volume
     src: '${APPLICATION}' # host source directory
     sync_userid: 1000 # giving permissions to www-data user (as defined in nginx and php-fpm Dockerfiles)
-    sync_strategy: 'native_osx' # native_osx is the default
+    sync_strategy: 'native_osx' # for windows use 'unison' for linux docker-sync is not necessary
     sync_excludes: ['laradock', '.ignored_dot_folder'] # ignored directories