Deploy postgre to swarm
This defines how we are going to handle services that require data persistence for now. For the sake of simplicity, one of the workers in the swarm will be labeled data
and such services can only be scheduled within this node due to a restriction on the docker-compose.yml
. Within such node, it has a /opt/docker-swarm-deployments/data
directory which will have subdirs for each service requiring data persistence. This approach is good if we decide to scale using NFS or GlusterFS.
Part of #31 (closed)