Hi I am new in docker side I have some doubt about communicating between two docker container’s, I have two docker container’s. One is login page container and other is dashboard container those container port are same 80 but host port differ login host port 82 and dashboard host port 83, how to communicate login page container to dashboard container with host port
login page and dashboard developed from Angular 12+ Docker Desktop windows 11 pro
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!
Hello,
What I would personally do is to create a Docker network and then assign names for each container. That way the containers will be able to communicate via that new Docker network and you can use their names as the hostnames for your application.
You can follow the steps on how to do that here:
This also includes the following step-by-step video:
In case that you are just getting started with Docker, I could suggest this free eBook here too:
Free Introduction to Docker eBook
Let me know how it goes!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.