Hi everyone,
I'm trying to figure out what directories should be kept persistent in a docker container.
Extensions or other server files will be part of the image, so I'm not worried about those.
RUN composer create-project flarum/flarum . --stability=beta
COPY composer.json composer.lock ./
RUN composer install
My preference is to keep as little as possible, without removing user contributed data, or affecting their user experience. Assets are generated on deployment with Cache Assets as well.
I have these first two, as they seem to include avatars, and storage/sessions as well, to keep users from being logged out.
Is there anything else I should be looking at?
/assets
/public/assets
/storage/sessions