(maint) Use named volumes in compose where possible #129
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
docker-compose supports named volumes, which are different than the
bind mounts that have been used thus far
bind mounts expect that the host directory exists on disk and their
behavior is a bit different, and is discussed in the docs at:
https://docs.docker.com/storage/bind-mounts/
While LCOW is happy to support both volumes and bind mounts, support
from the platform is a bit different. Specifically it appears that
bind mounts properly support hardlinks (necessary during Postgres
startup), while volumes do not. An issue has been filed to track that
issue at LCOW: Docker Volumes should grant FullControl to associated vmwp.exe process user hosting container (was: CreateFile access denied) moby/moby#39922 (originally filed at LCOW: Docker Volumes don't support some fs operations that bind mounts support - CreateFile access denied microsoft/opengcs#337)
Switch all volumes to named, except for the one Postgres data volume
which must remain a bind mount