We’ve just setup a swarm on GCE (google compute engine) with docker 1.12-rc2 and successfully ran our first services via:
$local_machine: docker-compose bundle $swarm_manager1: docker deploy someservice
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:
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.