Skip to content

Instantly share code, notes, and snippets.

@beardcoder beardcoder/Makefile
Last active Jan 28, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.