Skip to content

Commit 42fc8b7

Browse files
committed
separating syn compose file
1 parent 0aa63c4 commit 42fc8b7

3 files changed

Lines changed: 19 additions & 7 deletions

File tree

docker-compose.sync.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '2'
2+
3+
services:
4+
5+
### Applications Code Container #############################
6+
7+
applications:
8+
image: tianon/true
9+
volumes:
10+
- applications-sync:/var/www:nocopy # nocopy is required
11+
12+
### Volumes Setup #############################################
13+
14+
volumes:
15+
applications-sync:
16+
external:
17+
name: "applications-host-sync"

docker-compose.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ services:
77
applications:
88
image: tianon/true
99
volumes:
10-
# - ${APPLICATION}:/var/www
11-
- applications-sync:/var/www:nocopy # nocopy is required
12-
10+
- ${APPLICATION}:/var/www
1311

1412
### Workspace Utilities Container ###########################
1513

@@ -670,6 +668,3 @@ volumes:
670668
driver: "local"
671669
elasticsearch-plugins:
672670
driver: "local"
673-
applications-sync:
674-
external:
675-
name: "applications-host-sync"

docker-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ syncs:
66
applications-host-sync: # name of the sync volume
77
src: '${APPLICATION}' # host source directory
88
sync_userid: 1000 # giving permissions to www-data user (as defined in nginx and php-fpm Dockerfiles)
9-
sync_strategy: 'native_osx' # native_osx is the default
9+
sync_strategy: 'native_osx' # for windows use 'unison' for linux docker-sync is not necessary
1010
sync_excludes: ['laradock', '.ignored_dot_folder'] # ignored directories

0 commit comments

Comments
 (0)