Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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