We’re using a similar approach to improve filesystem performance as @eugenmayer’s docker-sync
, by using lsyncd to sync host mounts with named container volumes:
It’s only one-way sync, but it does not require any additional tools and only one additional Docker container to run any number of host mount to named volume setups.
The Dockerfile itself is super small and the overall setup very simple, so it does not add much complexity, while providing a lot of flexibility thanks to lsyncd
's configurability.
I thought I’ll post it here if someone else if looking for a similar, simple solution.