Skip to content

Ports

By default, applications deployed using Paketo Buildpacks or Dockerfiles are configured to listen on TCP port 5000, as this is the port pre-configured on the Kubernetes service.

However, we recognize that different applications and services have specific port requirements, and we offer an extended list of supported ports to cater to these needs.

Default TCP port: 5000

The TCP port 5000 is the cornerstone of our application routing architecture. This port is pre-configured within the Kubernetes service to ensure that all web traffic—whether HTTP or HTTPS—reaches your application efficiently. Specifically, the Kubernetes Ingress controller is set up to direct incoming web traffic to port 5000 on your application’s container.

Why port 5000?

  • Unified Traffic Routing: By standardizing on port 5000, we simplify the configuration process for developers, ensuring that any web application deployed on Miget can be easily accessed via the web. Whether users access your application through standard HTTP (port 80) or secure HTTPS (port 443), the Kubernetes Ingress will automatically route this traffic to port 5000 on your container.

  • Simplified Deployment: This standardization means that as a developer, you don’t need to worry about configuring your application to listen on different ports based on the environment. Instead, your web application should be configured to listen on port 5000 by default, ensuring it aligns perfectly with Miget's routing configuration.

  • Optimized for Web Applications: Whether you're deploying a traditional web application, an API service, or a microservices architecture, as long as your application listens on port 5000, Miget will handle the rest. This setup provides an out-of-the-box solution for web traffic management, reducing the complexity typically involved in containerized deployments.

PORT Environment Variable

When you create an application on Miget, the immutable PORT=5000 environment variable is set by default. This setting is essential for the correct operation of your application within our platform and cannot be changed or overwritten.