cgwire / kitsu-docker

Dockerfile used to build the trial image of Kitsu
https://hub.docker.com/r/cgwire/cgwire/
Apache License 2.0
39 stars 26 forks source link

data persistence: use volumes instead of bind mounts #1

Closed pilou- closed 6 years ago

pilou- commented 6 years ago

According to the docker documentation:

Volumes are the preferred way to persist data in Docker containers and services.

Then there is no need to import /var/log/postgresql/9.5 from archive (doc):

If you mount an empty volume into a directory in the container in which files or directories exist, these files or directories will be propagated (copied) into the volume.

frankrousseau commented 6 years ago

Great ! Thank you