Skip to content

Instantly share code, notes, and snippets.

@leymannx
Created February 6, 2018 11:52
Show Gist options
  • Save leymannx/277095bcc750300e749d5ae185181b74 to your computer and use it in GitHub Desktop.
Save leymannx/277095bcc750300e749d5ae185181b74 to your computer and use it in GitHub Desktop.
version: '2'
services:
web:
image: php:7.0-apache
volumes:
- /var/www/myapp
bg-sync:
image: cweagans/bg-sync
volumes:
- .:/source
volumes_from:
- web
environment:
- SYNC_DESTINATION=/var/www/myapp
- SYNC_MAX_INOTIFY_WATCHES=40000
- SYNC_VERBOSE=1
- SYNC_PREFER=newer
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment