In many of our apps the pattern has been to store the files in the local file system, but it seems better now to store these as persistent volumes in Docker. This would just involve adding a volume like this and referencing it instead of the local path. This would make the directory a little cleaner and easier to clean up.
In many of our apps the pattern has been to store the files in the local file system, but it seems better now to store these as persistent volumes in Docker. This would just involve adding a volume like this and referencing it instead of the local path. This would make the directory a little cleaner and easier to clean up.
This pattern is used in ROHQ https://github.com/tl-its-umich-edu/remote-office-hours-queue/blob/master/docker-compose.yml
We might want to document that to remove this volume you'd have to remove the container and remove the volume associated with it.
https://github.com/tl-its-umich-edu/my-learning-analytics/blob/d08802ac37789ac8072d0aa1490ba5c0c0154ed4/docker-compose.yml#L16