How to open port on Azure Container Apps
Asked Answered
G

3

6

We have created an Azure Container App which hosts a container for rabbitmq (docker.io/rabbitmq:latest), for this to work we need top expose port 5672 and 15672 (for dashboard). Is this possible, do we need to enable ssh first?

Geier answered 5/9, 2022 at 9:39 Comment(0)
S
4

This is now possible due to a new feature https://github.com/microsoft/azure-container-apps/issues/375.

With TCP sockets, you can set exposedPort.

Snipe answered 24/10, 2022 at 22:22 Comment(0)
M
4

For those still looking to do this, this is now possible to add additional TCP ports in an azure container app https://learn.microsoft.com/en-us/azure/container-apps/ingress-overview#additional-tcp-ports

It's in preview and there is some limitations but it's working.

Marhtamari answered 7/12, 2023 at 10:48 Comment(0)
G
2

The Azure Container Apps ingress listens on port 443. You can map this to the port your container is listening on but there's no way to directly expose other ports. enter image description here

Gaye answered 5/9, 2022 at 11:50 Comment(2)
The problem that we have is that we need 2 ports for rabbitmq, the main port and the port for the dashboard (5672 and 15672). Here we can only map to one portGeier
You won't be able to use container app or app service as they only allow one port to be opened. You will need to use either container instance in azure or use a vmJarboe

© 2022 - 2024 — McMap. All rights reserved.