Have you considered using a Wordpress plugin to upload the files to an API, rather than a filesystem? If this were a swarm of machines in Amazon, for instance, the S3 plugin would make lots of sense. (It would still make sense if you were using Riak (or some other local S3-compliant object store)).
If nothing else, you could use NFS, but that's kind of icky for this solution. There's flocker (https://clusterhq.com/flocker/introduction/) but I've never used it and I don't know anything about it except that it claims to solve this problem. Good luck and let us know what you use! --Matt On Friday, September 9, 2016, Morgan Blackthorne <mor...@windsofstorm.net> wrote: > Anyone out there working with Docker swarm where applications need to > access a shared filesystem across the swarm? I know how to link containers > together inside a host, but I don't think you can link to a container on a > different host. > > Specifically I'm looking at taking some forums and WordPress sites and > moving them from single-host containers into Swarm services, without > disrupting the ability to do file uploads for attachments, user avatars, > etc. > > I saw some references to running a Gluster swarm and using those as a > container, but I haven't found much in the way of detail on that. Flocker > looks interesting, but doesn't seem like it handles all the cases that I'm > looking for. Or maybe I should just look at creating a replicated > filesystem across the Docker host servers and then pointing the Swarm > containers at subdirectories off of that shared filesystem. I'm sure it has > to be a known issue, but with Swarm being so new, it's hard to find a lot > of documentation around this scenario right now... or at least, trying to > sift through the noise to find the signal. > > Thanks! > > --Morgan > -- "Today, vegetables... Tomorrow, the world!"
_______________________________________________ Tech mailing list Tech@lists.lopsa.org https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/