separating syn compose file
This commit is contained in:
parent
0aa63c40f8
commit
42fc8b7b57
|
@ -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"
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue