leighmcculloch / docker-unison

A docker data container using Unison for fast folder sync. An alternative to slow boot2docker volumes on OS X.
GNU General Public License v3.0
167 stars 26 forks source link

Make Unison more flexible #5

Closed smyth64 closed 8 years ago

smyth64 commented 8 years ago

Because the /unison folder is hardcoded, it's not possible to use this container for example for an mysql container, which uses the /var/lib/mysql folder as a shared volume.

This little fix makes this possible with the $UNISON_DIR Environment Variable!

Cheers, Michael

leighmcculloch commented 8 years ago

@smith64fx I've isolated the change described in your pull request into #6. Let me know what you think on the #6 pull request and if it does what you need and I'll merge it!