I would like to create a persistent volume after reboot with a specific size using docker-compose. Here is what I have tried.
This way the volume is persistent but no size is specified
And if I do this, the volume has the right size but data are not persistent after reboot
volumes: data: driver_opts: type: none device: path o: bind, size=50G
I also tried with other types like nfs, tmpfs but I don’t manage to get a persistent volume. What did I not understand?
Thank you for your explanation