I'm new to Docker. I have been surfing through the internet to find any resources for how to Dockerize a React-Django project, in which the React App is served from Django, both running on port 8000, but couldn't find any proper resource for this. Can someone help me with the procedure for Dockerizing a React-Django project having a monolithic architecture?
Asked
Active
Viewed 285 times
2
-
1And what is the problem you're facing? – Rohan Thacker Jul 04 '21 at 03:59
-
When both React and Django are running independently, we create 2 containers in docker, one for React(which runs on port 3000) and for Django (which runs on port 8000). In my project, I have included the React built version of the app in the settings.py file, in the templates section. So, when I give the command python manage.py runserver, both my react app and Django run on port 8000. So in this case, should I just be creating a docker container only for my Django project? – Krishnan S Jul 04 '21 at 04:04
-
Short answer, Yes! – Rohan Thacker Jul 04 '21 at 04:06
-
1If you're having an issue with the docker container or any other issue, update the question and we can workout the solution. – Rohan Thacker Jul 04 '21 at 05:00
-
https://stackoverflow.com/q/68241778/15964669. Tried to Dockerize my Django project. Faced an issue similar to this stack overflow discussion – Krishnan S Jul 04 '21 at 05:44
-
1whats the issue you faced? – Rohan Thacker Jul 04 '21 at 05:51