Hello, I’m pretty new to this stuff. First of all, I installed docker and nginx on my server. I then used the docker image file located in the nextjs-example folder.Here is example I cloned my project via github and raised it via docker.
Now I want to do something like this. When I log into mydomain.dev it says “This site cannot be reached”. but when I type the ip address of the server into the browser, the project works.
How can I point this to my domain address?
In addition, I want to create a few subdomains. For example project1.mydomain.dev project2.mydomain.dev These will be projects working with different docker image files, how can I integrate them into subdomains.
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!