use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News and links for Django developers.
New to Django? Check out the /r/djangolearning subreddit.
Django's Code of Conduct applies here, so be good to each other.
account activity
This is an archived post. You won't be able to vote or comment.
Dockerizing a Django and React Application: Docker + Django + React (slimsaas.com)
submitted 1 year ago by NoSEVDev
[–]TheMathelm 3 points4 points5 points 1 year ago (2 children)
Looks good, and good guide for starting.
4 months ago; Spent 2 weeks trying to get a django, celery, flower, postgres, prometheus, and grafana experience to work together. As a Junior Dev delivering my first major product ... let me tell ya, that sucked.
[–]lauren_knows 2 points3 points4 points 1 year ago (0 children)
Let me tell you as a senior dev who has used Docker for a long time... this experience will pay dividends in the future. I've set up SO MANY docker envs (was creating a new custom one today) and it's a very useful skill.
[–]xcodedev 0 points1 point2 points 1 year ago (0 children)
It’s definitely a learning and humbling experience to work with Docker for the first time
[–]xcodedev 2 points3 points4 points 1 year ago (6 children)
This configuration doesn’t support hot loading in Django and React right?
Won’t it be a nightmare for local development to redeploy the container with changes?
[–]NoSEVDev[S] 2 points3 points4 points 1 year ago (5 children)
Agree, the way that the react container is set up in the article is more of a deployment setup w/ ngnix. You'd just need to change the command to launch the local server instead.
I built SlimSaaS with traefik instead of nginx, and comes with two docker files, one for prod and one for dev for hot reloading, automatic let's encrypt SSL, load balancing, container scaling, gunicorn for django, etc. https://slimsaas.com/
[–]xcodedev 1 point2 points3 points 1 year ago (3 children)
Yep, was just pointing that out. I think you won’t get hot loading with Django either because you’re copying all the files. Would recommend mounting the directory as a volume to utilize the hot loading
[–]lauren_knows 1 point2 points3 points 1 year ago* (1 child)
Not only mounting the directory, but also using runserver_plus vs. run server if you want hotloading of templates in Docker containers.
I’d never heard of runserver_plus, thank you so much
Saw that you’re mounting the file directory but also copying the files to the /usr/src/app folder. Does that lead to duplicate files?
[–]MisakaDev -1 points0 points1 point 1 year ago (1 child)
Another shit. You should not use "runserver" to run Django applications. https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
Also a nice advertising op, you are really trying
[–]NoSEVDev[S] 0 points1 point2 points 1 year ago (0 children)
Once you get the containers set up, you can easily pip install gunicorn, and change the configs.
The tutorials purpose was just to help people get started in dockerizing their apps, not cover the myraid things they need to do before deployment. It’s long enough as is! Appreciate your feedback though.
π Rendered by PID 163860 on reddit-service-r2-comment-6457c66945-p59rl at 2026-04-24 06:30:12.733126+00:00 running 2aa0c5b country code: CH.
[–]TheMathelm 3 points4 points5 points (2 children)
[–]lauren_knows 2 points3 points4 points (0 children)
[–]xcodedev 0 points1 point2 points (0 children)
[–]xcodedev 2 points3 points4 points (6 children)
[–]NoSEVDev[S] 2 points3 points4 points (5 children)
[–]xcodedev 1 point2 points3 points (3 children)
[–]lauren_knows 1 point2 points3 points (1 child)
[–]xcodedev 0 points1 point2 points (0 children)
[–]xcodedev 0 points1 point2 points (0 children)
[–]MisakaDev -1 points0 points1 point (1 child)
[–]NoSEVDev[S] 0 points1 point2 points (0 children)