Avoid mounting environment variable file itself as a volume to allow config changes with container restarts #12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the example
docker-compose.yml
file on https://quay.io/repository/zknt/pixelfed, the.env
file is mounted as a volume directly.When a file is mounted as a volume (rather than a directory), docker requires the container to be re-created each time the file is changed -- a
restart
command does not allow the container to see any changes to files directly mounted as volumes.It would be cool if the
.env
file could be accessed via a folder volume rather than the file itself, so a simplerestart
would be possible. This can't be fixed by just changing thedocker-compose.yml
with the existing image because thewww
folder can't be overriden with a volume mount lest you lose what you're using the image for in the first place.Thanks!
FYI: Thanks for creating this docker image. I wouldn't be self-hosting Pixelfed without it.