Skip to content
This repository was archived by the owner on Oct 15, 2018. It is now read-only.
This repository was archived by the owner on Oct 15, 2018. It is now read-only.

How do we want to handle volumes and "persistance" versus "distribution" #67

@james-nesbitt

Description

@james-nesbitt

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.

  1. 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.
  2. 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:

  1. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions