Category: Database, Data, Docker, nginx

This is something of a cheatsheet for minimal but efficient and safe Django dockerization for deploy on a VPS using nothing but docker-compose . My belief is that dockerization must be handled as early as possible for a web server project.

Of course, tweak any of these to your liking and needs of your project.

At last, all is done and we are ready to deploy our project to a VPS of our choosing! To do that, we need to deliver the code to the server (either a direct git clone or just a project folder upload) and configure it in the .sampleproject_env file, like this: And run docker-compose up -d to launch our project in detached mode.

Related Articles