Deploying Django application that is using Celery and Redis might be challenging. Thanks to docker-compose
tool we can prepare docker containers locally and make deployment much easier. I would like to show you my approach for constructing docker-compose
configuration that can be reused in other web applications. I will be using Django version 4.1.3
and Celery 5.2.7
. The nginx server will be used as reverse proxy for Django and to serve static files. Postgres database and Redis will be in the docker-compose
.
React and Django Free Boilerplate
Learn how to write SaaS application with React and Django from scratch
Contact us for any questions by filling a form.
Topic: Django
-
Docker compose with Django 4, Celery, Redis and Postgres
Celery Django Redis Postgres Nginx Docker Aleksandra Płońska, Piotr Płoński, November 17, 2022
-
How to generate Django Secret Key?
Django Piotr Płoński, November 10, 2020
Have you ever pushed to the repository a Django project with
SECRET_KEY
? Ups, it happens to me very often. Don’t worry. This can be easily fixed. -
Docker-Compose for Django and React with Nginx reverse-proxy and Let's encrypt certificate
Docker-compose Django React Nginx Let's encrypt Boilerplate Piotr Płoński, October 30, 2020
The most exciting moment of the web application development is a deployment. Your app is going live! It can also be nerve-wracking moment. Unfortunately. There are many options, many variables and configurations. It is easy to miss something … In this article, I will show you how to pack Django and React application into containers and deploy them with
docker-compose
. The presented approach can be reused on any Cloud Provider (AWS, DigitalOcean, Linode, GCP, Heroku) - you just need a Virtual Private Server (VPS). -
CRUD in Django Rest Framework and React
Django React Backend Frontend Django-rest-framework Boilerplate Piotr Płoński, October 29, 2020
In this artilce, we will create a CRUD (Create, Read, Update, Delete) model in the Django Rest Framework and React. It will be for simple note taking. User will be able to add new note, read all her notes, update note (to upper or lower case), and delete selected note.
-
Token Based Authentication with Django Rest Framework and Djoser
Django Django-rest-framework Token based authentication Djoser Backend Boilerplate Piotr Płoński, October 26, 2020
In this article, we will add token-based authentication REST API with Django Rest Framework and Djoser. The Django Rest Framework is a package for faster building REST APIs with Django. The Djoser provides basic views to handle authentication actions such as create user, login, logout.
-
Starting SaaS with Django and React
Django React Backend Frontend Boilerplate Piotr Płoński, October 23, 2020
Software-as-a-Service (SaaS) is a model of software delivery in which users pay a subscription to get access to centrally hosted software. Nowadays, you can easily build your own SaaS, but you need to have programming skills. There are a lot of open-source web frameworks that allow you to quickly create a web service. You can serve SaaS on rented hardware in the cloud. You can start your own SaaS at 10-50$ per month of total costs (but you need to have programming skills!).
-
Django and React Posts ideas
Django React Piotr Płoński, October 22, 2020
I will post here ideas for new posts. If you would like to see a topic selected by you, please let me know by filling this form.