added docker-sync support
This commit is contained in:
parent
fe096ce282
commit
00a38fe274
|
@ -2,4 +2,5 @@
|
|||
/logs
|
||||
/data
|
||||
.env
|
||||
/.project
|
||||
/.project
|
||||
.docker-sync
|
|
@ -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"
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue