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