With django(backend) and NextJS (frontend) I wonder how to set up my nginx file so it can serve both django and NextJs from the same digitalocean IP.
I have a project with
The docker-compose.yml runs and mounts the django project.
For the frontend to run I need to
Locally django runs on port 8000 and NextJS on port 3000.
I pushed the project to a digitalocean dockerized droplet. I ran docker-compose and it mounted as expected.
But I struggle to grasp how to set up my nginx file so it can serve both folders from the same digitakl-ocean IP.
Any return would be highly appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.