separating syn compose file

This commit is contained in:
Arian Acosta 2017-07-15 08:19:49 -04:00
parent 0aa63c40f8
commit 42fc8b7b57
3 changed files with 19 additions and 7 deletions

17
docker-compose.sync.yml Normal file
View File

@ -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"

View File

@ -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"

View File

@ -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