The whole setup with load-balancing works quite nicely and was really fast to setup.
We are now faced with the task of how to make data containers with persistent storage work, since we’d like to setup multiple postgres, rabbitmq and elasticsearch instances (and don’t want to lose our data,…).
As I understand:
docker-compose bundle
currently does not support volumes. So I think that flocker is not an option (not sure though).
So my question is:
What approaches are there to get persistent storage in a swarm when using bundle/deploy with *.dsb/*.dab files?
The “smartest” I could come up with so far is to mount NFS shares inside the containers, like it is done here.
I would be very grateful if somebody could nudge me in the right direction.
This is really good question. The whole DAB idea seems awesome, but kind of useless if the services created can’t access each others files (or, like you stated, have some kind of persistent storage).
Then again, docker stacks and DAB is highly experimental at this stage, so probably it’s still being worked on!