Docker Compose Bind Mount or Volume with DO Volume
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?
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.×