Docker | Towards serving React (Nginx) with Django API (gunicorn)

Very Academy
Very Academy
48.7 هزار بار بازدید - 3 سال پیش - This is a docker compose
This is a docker compose tutorial we take your first steps creating a deployment setup with React and Django running on a Nginx server, supported with gunicorn for Django. Having already created a basic React and Django application, see the link below for repositories, we first build the docker files needed for both Django and React before then building a docker compose file. This tutorial gives you a better understanding of docker volumes and bind mounts as we look at using both tools. We then build our nginx configuration to serve react from the root directory. Finally we expand the nginx configuration to include a proxy to the Django API.

00:00 Introduction and underpinning knowledge
03:36 Download code repo and get started
07:59 Django Dockerfile
09:38 React Dockerfile
12:14 Docker compose
25:55 nginx conf
35:15 Docker volume storage discovery
41:12 Final nginx conf with Django API proxy

Code Repository:
https://github.com/veryacademy/docker...

🐱‍🏍Would you like to SUPPORT US FURTHER so that we can make even more great content - Please consider joining our members community.
@veryacademy

👍SUBSCRIBE to get more free tutorials, courses and code snippets!
@veryacademy
3 سال پیش در تاریخ 1400/01/18 منتشر شده است.
48,791 بـار بازدید شده
... بیشتر