Separate storage volume

Data volumes

Currently everything is stashed in a static folder on the host OS which is fine for the most part but can be limiting as it comes to Dockers full capabilities. Its helpful to be able to have everything in docker containers so you can duplicate your deployment environment to a staging machine if you want to test changes to your environment without effecting service.

What I propose.

An extra /var/discourse/sample/storage.yml where it simply just adds a storage container which can be easily pushed to a private Docker repository.

Potential downsides

It can add complexity to have everything in separate containers but thats generally what Docker recommends so that you can replace the moving bits independent of other moving bits.

Added benefits

  1. Portability, you can clone a docker container and push them to a personal repository on the docker registry or even a self hosted registry if you so desire.
  2. Compatibility with clustering operating systems such as CoreOS
1 Like

I am fine with a sample that demonstrates VFS and data volumes, but there is no way I want it to be default, it complicates setup and adds moving parts.

1 Like