Last active
January 28, 2018 21:10
-
-
Save beardcoder/f4764e26301528ad150383d7759f72ee to your computer and use it in GitHub Desktop.
Docker Sync for WebDevOps Boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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