I am new to Docker and currently stuck trying deploy a stack with apache and mysql using persistant storage for the database.
I understand how to do this as single container (non-swarm), but how does this work if running as a swarm with replicas of mysql service?
I have been trying to get this to work by mounting a samba share as the volume for mysql in a compose file but have failed to get it working. Samba share is mounted and accessible by all nodes in the swarm to /samba-vol
Any suggestions or best practice of how to properly set this up?
This is my docker-compose.yml:
(Apologies for the formatting, all my indentation for some reason was removed from my post)