You can expose multiple ports on a single deployment, public and private, and link each public port with custom subdomains.
You can add ports manually, or detect ports exposed by your Dockerfile. Ports can be added while creating your deployment, or afterwards from the ports & DNS page on deployment and combined services.
You can use any port number from 1 to 65535.
In the port editor you can toggle the DNS view to see either public or private port domain names.
Private Northflank domain names, to be used internally by other Northflank services, take the format:
Private ports allow services in the same project to communicate with each other. You can access the port within the project by using the internal domain name.
Private ports can use HTTP, TCP, or UDP.
When you create a new deployment Northflank will scan the image manifest and attempt to identify and add the ports exposed by the image. You can also detect ports from the ports & DNS page on a service. You should always verify that the ports are correct for your deployment.
You can expose ports in your Dockerfile in the following ways:
# HTTP port (public by default) EXPOSE 3000 # TCP port (private) EXPOSE 2121/tcp # UDP port (private) EXPOSE 7171/udp
Add a domain
Add your domain name to your Northflank account.
Link a domain to a port
How to link and unlink domains and subdomains with specific ports on your deployments.
Set IP policies
Allow or deny access to services based on IP addresses.
Configure basic authentication
Require users to enter a username or password to access your site.