After a long search, I cant find the answer or solution to the question if I can mount or use volume in docker-compose to bind a directory from a remote host?
The examples are always using local directories or volumes.
To clarify: I try to establish a blue green deployment with one Database on a different VM then the 2 app servers. The app and its components will be deployed using docker, and also need access to the same directory where things will be saved, so both blue and green can access this saved files. My thought was to create this directory on the database server as this will be used kind of in the same way. Now I am trying to mount or use the volume syntax in docker-compose so that the directory on the db server can be accessed by the backend containers. The containers that needs access to the directory are based on ubuntu images if that matters.
Is this the right way? and then how do I assign that in my docker-compose.yml or Dockerfile? Or is there a better way to accomplish this?
Thanks in advance