Skip to content

Commit

Permalink
adjust configuration and examples to show up consistent container names
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenMayer committed Jul 10, 2016
1 parent 59c7c2e commit 4e16836
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions example/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ services:
container_name: 'fullexample_app'
# that the important thing
volumes_from:
- container:fullexample:rw # will be mounted on /var/www
- container:fullexample-sync:rw # will be mounted on /var/www
command: ['watch', '-n1', 'cat /var/www/somefile.txt']
otherapp:
image: alpine
container_name: 'simpleexample_app'
command: ['watch', '-n1', 'cat /app/code/somefile.txt']
# thats the important thing
volumes_from:
- container:simpleexample:rw # will be mounted on /app/code
- container:simpleexample-sync:rw # will be mounted on /app/code

# thats the important thing
volumes:
fullexample:
fullexample-sync:
external: true
simpleexample:
simpleexample-sync:
external: true
4 changes: 2 additions & 2 deletions example/docker-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ options:
verbose: true
syncs:
# IMPORTANT: this name must be unique and should NOT match your real applciation container name!
fullexample:
fullexample-sync:
# which folder to watch / sync from - you can use tiled, it will get expanded. Be aware the then trailing slash makes a difference
# if you add them, only the inner parts of the folder gets synced, otherwise the parent folder will be synced as top-level folder
src: './data1'
Expand Down Expand Up @@ -37,7 +37,7 @@ syncs:
watch_excludes: ['.*/.git', '.*/node_modules', '.*/bower_components', '.*/sass-cache', '.*/.sass-cache', '.*/.sass-cache', '.coffee', '.scss', '.sass', '.gitignore']
# optional: use this to switch to fswatch verbose mode
watch_args: '-v'
simpleexample: # IMPORTANT: this name must be unique and should NOT match your real applciation container name!
simpleexample-sync: # IMPORTANT: this name must be unique and should NOT match your real applciation container name!
src: './data2'
dest: '/app/code'
sync_host_ip: 'localhost'
Expand Down

0 comments on commit 4e16836

Please sign in to comment.