Docker, static web application files. Best practics?

How do people tend to handle static resources in a docker web deployment?

For example, in a django application deployed in a container, is there an application server that serves static files from the container, or do you synchronize them on another server to serve the web server or use the CDN

If you are not using the application container, when you click the files on the CDN or the web server: as part of the container assembly or as the second process in the assembly and how do you ensure the synchronization of both stages?

+5
source share
1 answer

To achieve this, you will have to use a cloud storage form. S3, for example. You can also host your static files just like a CDN. Since you are using django, consider this article. It explains how to host static files in a django application.

As a Laravel user, you can use the Laravels built into flysystem .

0
source

All Articles