From 42fc8b7b577c8e339dbfe37fa78c3f54728f72d3 Mon Sep 17 00:00:00 2001 From: Arian Acosta Date: Sat, 15 Jul 2017 08:19:49 -0400 Subject: [PATCH] separating syn compose file --- docker-compose.sync.yml | 17 +++++++++++++++++ docker-compose.yml | 7 +------ docker-sync.yml | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 docker-compose.sync.yml diff --git a/docker-compose.sync.yml b/docker-compose.sync.yml new file mode 100644 index 0000000..b4b383a --- /dev/null +++ b/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" diff --git a/docker-compose.yml b/docker-compose.yml index b6ac1b2..29b0109 100644 --- a/docker-compose.yml +++ b/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" diff --git a/docker-sync.yml b/docker-sync.yml index 0de3d13..d497a56 100644 --- a/docker-sync.yml +++ b/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