Hello everyone, My project requires two Morello docker compose containers that work at the same time on the same host. There is a communication between them using docker names and ports. I have created a network and add it to both docker-compose.yml files, I also exposed the ports that I will use to communicate.
Here is the content of one of the files and the other seems similar to it:# Docker composer file for Morello Linuxversion: '3.8'services: primary-morello-sdk: image: "git.morello-project.org:5050/morello/morello-sdk/morello-sdk:latest" container_name: "primary-morello-sdk" volumes: - ./shared_folder:/home/morello/shared_folder - ./workspace:/home/morello/workspace tty: true restart: unless-stopped networks: - morello-network primary-morello-linux: image: "git.morello-project.org:5050/morello/morello-linux/morello-linux:latest" container_name: "primary-morello-linux" environment: - UID=1000 - GID=1000 volumes: - ./morello:/morello - ./shared_folder:/morello/shared_folder ports: - "30701:30701" - "30702:30702" - "30703:30703" - "30704:30704" - "30705:30705" - "30706:30706" - "30707:30707" - "30708:30708" - "30709:30709" - "30710:30710" - "30711:30711" tty: true restart: unless-stopped networks: - morello-network networks: morello-network: external: trueThe issue is when I try to connect from one container to another using the container name as a host and one of the exposed ports, I receive connection refused.Anyone could help me overcome this issue.Thanks in advance for your help.
Hi Yaseen,
Could you please provide more details? (e.g. error logs, commands to reproduce your scenario, etc.)
Thanks and Regards,
Vincenzo