https://docs.docker.com/storage/ says “Bind Mounts” are inferior to “Volumes”. But volumes run on the host machine’s disk, not the DO Volume.
Changing the Docker “data root” could move all things Docker to the DO Volume, but I worry about a) persisting unnecessary data and b) running two hosts from the same data root.
What’s the best way to persist a docker-compose.yml app’s data on a DO volume?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.