Is docker-bg-sync compatible with Docker Compose file format version 3.x?
blaise-io opened this issue · 3 comments
blaise-io commented
Any documentation or pointers on this would be appreciated.
blaise-io commented
I just found this closed issue: #10.
Still, I think it would be useful if this was in the README.
cweagans commented
Totally agree. I'm afk mostly today, but if you can open a PR, I'll happy merge any docs improvements that would be helpful!
geerlingguy commented
The PR is close, but you also have to add volumes
in v3 with a named volume, and reference it in any of the containers that will use it. For example:
version: '3'
services:
web:
image: php:7.0-apache
volumes:
- shared:/var/www/myapp
bg-sync:
image: cweagans/bg-sync
volumes:
- .:/source
- shared:/var/www/myapp
environment:
- SYNC_DESTINATION=/var/www/myapp
- SYNC_MAX_INOTIFY_WATCHES=40000
- SYNC_VERBOSE=1
privileged: true
volumes:
shared: