Ports

Ports

The fourth tab (Ports) provides you with the general information on managing Docker container’s ports at Apiqcloud:

The following ports are opened by default:
  • 8080808686 - proxies HTTP traffic to HTTP (80 port)
  • 484884434901-4910 - proxies SSL (HTTPS) traffic is proxied to SSL
  • 443 - proxies SSL traffic is proxied to HTTP (80 port)
  • 49497979 - proxies SSL traffic to HTTP

Tip: Use the table below as a reference:



Additional ports can be opened using:

  • Endpoints- maps the container internal port to random external via Apiqcloud Shared LB
  • Public IP- provides a direct access to all ports of your container

 

Depending on the way chosen, just bind your service (application listener) to the received internal or external address.

 

Apiqcloud PaaS automatically redirects incoming requests to the application hosted within a container.

This process is performed on each container launch, so the corresponding application becomes available over the embedded Shared Load Balancer just after being deployed, without any manual intervention required.

According to it, you can bind the necessary port directly to the IP address (regardless whether it is internal or external) your container was provisioned with. Pay attention that there is no need to expose ports in Apiqcloud because it uses PCS container-based virtualization, which is more technologically advanced compared with the native Docker containers’ implementation: it has the built-in support of the natural virtual host-routed network adapters.

So, if you’d like the required port to be accessible from the outside, you can either map via endpoint at Apiqcloud Shared LB (for been reachable over the automatically generated URL) or attach the external IP address to the appropriate container. After that, depending on the way chosen, just bind your service (app listener) to the received internal or external address.

Note that starting with Apiqcloud 4.0 version, platform automatically detects the ports, that are listened by application on the TCP level, during an image deployment. Then it separates the ones, that are commonly used by standard services (e.g. SSH, mail, databases, etc) and adds the required redirect to the iptables rules list (forwarding all the requests to the remained port, or the first one within the list). Such an operation is performed on each container's launch, so that the corresponding application becomes available over the embedded Shared Load-Balancer just after being deployed, without any manual interventions required.

However, in case you need to disable this functionality (e.g. for the app’s admin panel to be unaccessible from the outside), from Apiqcloud 4.6 you are able to set up the required auto-redirect settings manually right during the Docker container creation. For that, switch to the Variables configuration section and add the dedicated JELASTIC_EXPOSE parameter with the following values as possible:
  • 0 or DISABLED or FALSE - to disable auto-redirect
  • a number within the 1-65535 range - to define the required port for setting the corresponding redirect
  • if any other value is stated, the auto-redirect functionality will work as usual

 

 

  • 0 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

CMD/Entry point

CMD / Entry Point The last Run Config tab contains two input fields, where you can set the run...

Docker Container Configuration Tools

Docker Container Configuration Tools Apiqcloud dashboard allows adjusting some of the most...

Links

Links The Links section is intended for establishing a connection between your Docker...

Volumes

Volumes The Volumes tab contains the list of mounted at the current container data volumes,...

Variables

Variables At the Variables tab, you can see the list of default for the current container...