added docker-sync support

This commit is contained in:
Arian Acosta 2017-07-14 17:03:01 -04:00
parent fe096ce282
commit 00a38fe274
3 changed files with 17 additions and 2 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@
/logs /logs
/data /data
.env .env
/.project /.project
.docker-sync

View File

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

9
docker-sync.yml Normal file
View File

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