I have been going through Docker compose which will help in scaling multiple containers . But I have not taken a deep dive into the concepts of it . So at first , I started my Docker journey with creating two containers one as Client ( website) and other as the service . Now when I try to scale it using Docker compose there are some questions in my mind.
How to make the services communicate to each other
In the above example the web service is able to talk to redis . So in my scenerio I have two containers which are exposing different ports and I want the web to access the service through the exposed ports . How can I achieve this ?
How should I scale the Application . Should I need to scale both client and service or just scale client ? (
Pardon me if the questions are too basic . Appreciate your help .