Skip to content

Instantly share code, notes, and snippets.

@JesseObrien
Created June 11, 2019 15:21
Show Gist options
  • Save JesseObrien/f33861253f54d2edc69fd7766ae89837 to your computer and use it in GitHub Desktop.
Save JesseObrien/f33861253f54d2edc69fd7766ae89837 to your computer and use it in GitHub Desktop.
Docker sync setup
version: 2
options:
compose-file-path: 'docker-compose.yml'
compose-dev-file-path: 'docker-compose-dev.yml'
syncs:
admin-app-sync:
sync_strategy: 'native_osx'
src: './'
sync_args:
- "-ignore='Path .idea'" # no need to send PHPStorm config to container
- "-ignore='Path .git'" # ignore the main .git repo
- "-ignore='BelowPath .git'" # also ignore .git repos in subfolders such as in composer vendor dirs
- "-ignore='Path var/api/*'" # don't share the cache
- "-ignore='Path var/app/*'" # don't share the cache
- "-ignore='Path node_modules/*'" # remove this if you need code completion
admin-web-sync:
sync_strategy: 'native_osx'
src: './'
sync_args:
- "-ignore='Path .idea'" # no need to send PHPStorm config to container
- "-ignore='Path .git'" # ignore the main .git repo
- "-ignore='BelowPath .git'" # also ignore .git repos in subfolders such as in composer vendor dirs
- "-ignore='Path assets/*'" # don't share assets - they get compiled
- "-ignore='Path bin/*'" # don't share bin
- "-ignore='Path node_modules/*'" # don't need node_modules
- "-ignore='Path resources/*'" # don't need resources
- "-ignore='Path tests/*'" # don't need tests
- "-ignore='Path var/*'" # don't need var
- "-ignore='Path vendor/*'" # don't need vendor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment