<p>We are currently rolling out Pimcore 5 in our Docker Kubernetes environment but we didn't find an appropriate answer for the following question yet:</p>

<p>Which folders need to be persistent?</p>

<p>The documentation points out that the folders <strong>/var</strong> and <strong>/web/var</strong> are used to safe logs and assets (from the admin interface). Are there any other folders that need to be persistent to keep the environment stable even after a container restart / rebuild?</p>

<p>Are there any problems with updates or downsides if we run a setup like this:</p>

<ul>
<li>Git Repository for our Code Base</li>
<li>PHP-fpm Docker image that holds the code base (plus nginx and redis container)</li>
<li>Consistent Database</li>
</ul>

<p>We would also like to share our results when we managed to come up with a good solution.</p>

<p>Thank you very much! 
I know this question is kind of specific :)</p>

<p>Yes, <code>/var</code> and <code>/web/var</code> need to be on a persistent and shared filesystem.</p>

<p>Further hints regarding this setup are in the documentation: </p>

<ul>
<li><p><a href="https://pimcore.com/docs/master/Development_Documentation/Installation_and_Upgrade/System_Setup_and_Hosting/Cluster_Setup.html" rel="nofollow noreferrer">https://pimcore.com/docs/master/Development_Documentation/Installation_and_Upgrade/System_Setup_and_Hosting/Cluster_Setup.html</a></p></li>
<li><p><a href="https://pimcore.com/docs/4.6.x/Development_Documentation/Installation_and_Upgrade/System_Setup_and_Hosting/Amazon_AWS_Setup/index.html" rel="nofollow noreferrer">https://pimcore.com/docs/4.6.x/Development_Documentation/Installation_and_Upgrade/System_Setup_and_Hosting/Amazon_AWS_Setup/index.html</a></p></li>
</ul>
