Different than this one here.
I want to link multiple NFS mounts that point to the same local location in a docker-compose image. I put the following lines in a docker-compose file:
volumes:
nfs3:
driver: local
driver_opts:
type: nfs
o: addr=172.16.20.5,rw
device: ":/tmp/mount1"
nfs4:
driver: local
driver_opts:
type: nfs
o: addr=172.16.20.6,rw
device: ":/tmp/mount2"
And then in the services part, I have a postgres instance that has the following volume config:
volumes:
- nfs3:/bitnami
- nfs4:/bitnami
Unfortunately, when I write to /bitnami, it only writes to /tmp/mount2 and not /tmp/mount1. Is there a good way to be able to write to both NFS mounts?