Communication between containers in same Container App

Daniele Sarnari 25 Reputation points
2023-05-17T09:32:22.84+00:00

Hello, i deployed a container app instance with two containers inside:

  • webserver (nginx) (port 80)
  • app (php-fpm) (port 9000)

Webserver needs to redirect .php requests to App container, i tried using app:9000 but it's not working.

How can i achieve that? How is the networking inside a container app working?

I assume to be different from docker-compose networking because app:9000 it's not working.

Thanks.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
325 questions
0 comments No comments
{count} votes

Accepted answer
  1. AirGordon 7,030 Reputation points
    2023-05-17T10:03:42.1+00:00

    Azure Container Instances or Azure Container Apps?

    I suspect that depending on which Azure Service and your particular configuration you'll either need localhost:9000 or the fqdn for the php app.


0 additional answers

Sort by: Most helpful