These are chat archives for docker/swarm

16th
Mar 2017
kanedauy
@kanedauy
Mar 16 2017 21:34

Is there a best solution to have a database, mongodb as a service in the swarm in my case, and the volume for the data for the database?
The solution I am considering is to have different services in the swarm, replication 1/1, part of a replication set, each with his mount point in his node for the data.
The issue I'm seeing is for writing the constraint for each service to only spawn in that node, I can't find documentation about the --constraint format.
I'm using DigitalOcean if that makes any difference.

Thanks a lot