From 00a38fe274f2d2275a4c16523261f67abf28e62f Mon Sep 17 00:00:00 2001 From: Arian Acosta Date: Fri, 14 Jul 2017 17:03:01 -0400 Subject: [PATCH] added docker-sync support --- .gitignore | 3 ++- docker-compose.yml | 7 ++++++- docker-sync.yml | 9 +++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 docker-sync.yml diff --git a/.gitignore b/.gitignore index a6b304c9..702790af 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /logs /data .env -/.project \ No newline at end of file +/.project +.docker-sync \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 29b0109a..17cdde94 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,9 @@ services: applications: image: tianon/true volumes: - - ${APPLICATION}:/var/www + #- ${APPLICATION}:/var/www + - applications-sync:/var/www:nocopy # nocopy is required + ### Workspace Utilities Container ########################### @@ -668,3 +670,6 @@ volumes: driver: "local" elasticsearch-plugins: driver: "local" + applications-sync: + external: + name: "applications-sync" diff --git a/docker-sync.yml b/docker-sync.yml new file mode 100644 index 00000000..c68352aa --- /dev/null +++ b/docker-sync.yml @@ -0,0 +1,9 @@ +version: "2" + +options: + verbose: true +syncs: + applications-host-sync: # name of the sync volume + src: '${APPLICATION}' # host source directory + # sync_strategy: 'native_osx' # native_osx is the default + # sync_excludes: ['ignored_folder', '.ignored_dot_folder'] # ignored folders form sync \ No newline at end of file