For our continuous integration environment, we want to start working with docker swarm and the latest version V3 of the compose files specification. (Docker 1.13.1 and docker-compose 1.10.0).
We are currently working with V2 and therefore deploying everything to host level.
It is possible to work, for data containers --database data-- or statefull containers, with local volumes in swarm mode, with affinity so that the database container and the data containers reside on the same host ? Makes sense?
We know that there are several plugins to work with distributed volumes -Flocker, NFS, etc --- but we do not know what are the advantages and disadvantages of this scheme with respect to local volumes,
With docker swarm, for the case of distributed stateful containers, who is responsible for maintaining data consistency and synchronization?
Thank you very much for the help
Regards, Marano