@Giorgi Kurdadze Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
Could you please confirm are you trying to deploy the above shared docker-compose file Azure Webapps or any other Azure service?
If you are trying to deploy in Azure App service, then currently multi-container app using docker compose configuration in app service is in preview and have set of limitations like other ports 80 and 8080,networks are ignored.
Feel free to reach back to me if you have any further questions on this.