You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 15, 2018. It is now read-only.
Persistant volumes, and named volumes make management of local containers much easier.
Using a named/persistant volume means that you can keep your db data even when removing/upgrading the db container, and it makes it much easier to identify voumes when using the docker volumes command.
Using a volume means that you can never commit changes in the volumes into image versions, which means that you can never distributed the volume contents as a part of an image.
Consider the following:
if we want to rely on production environments, that use docker-compose.yml syntax, with no builds/repo content, then we can not use anything from outside of an image as a part of our application:
source code, assets, db-data must all be inside an image.
these images can be versioned/tagged, and the versions can be the basis for snapshot/rollbacks actions during deployments
images can be exported, which can be the basis for bit-wise archiving.
This is a meta-issue, calling for all opinions. This image is a result of various other issues and PRs:
Persistant volumes, and named volumes make management of local containers much easier.
Consider the following: