Skip to content

Instantly share code, notes, and snippets.

@beardcoder
Last active January 28, 2018 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beardcoder/f4764e26301528ad150383d7759f72ee to your computer and use it in GitHub Desktop.
Save beardcoder/f4764e26301528ad150383d7759f72ee to your computer and use it in GitHub Desktop.
Docker Sync for WebDevOps Boilerplate
version: '2' #can be 2 or 3 but it must match with the docker-compose.yml version
services:
app:
volumes:
- 'mymac-sync:/app/:nocopy'
volumes:
mymac-sync:
external: true
version: "2"
options:
compose-file-path: 'docker-compose.yml'
compose-dev-file-path: 'docker-compose.mac.yml'
syncs:
#IMPORTANT: ensure this name is unique and does not match your other container names
mymac-sync:
src: './app'
notify_terminal: true
sync_excludes: ['.git']
sync_userid: '1000'
up-mac:
docker-sync start && docker-compose -f docker-compose.yml -f docker-compose.mac.yml up -d
stop:
docker-compose stop
stop-mac: stop
docker-sync stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment