Configure Ports And Network
Prerequisites
- Configuring Hub
- Deploying Your First Container
- Configure DNS
- Create A LINKED Record
- Start Load Balancer
To recap:
- A container has been created.
- A load balancer is online.
- A LINKED Record exists that points to the container.
Now, all that's left to do is configure the container:
- Set Public Network to Enable
- Check port mapping
Public Network
Currently, the container dashboard should look like this.
This network diagram is designed to help identify possible causes for a lack of public network access.
When hovering over the green checkmark, a tooltip will appear that says Connection between internet and load balancer configured correctly. This indicates that the load balancer is properly configured.
BUT
If the crossed-out circle is hovered over, the message container network is disabled will appear.
Enabling the Public Network
From the container modal, click on the Config tab. Navigate to the network section and find the setting for Public Network. Based on the steps so far, this should be set to Disable.
Select Enable from the list and then use the Save Container button to save the changes.
After this change, the network diagram has updated to show that the container has no open ports that the load balancer accepts traffic on.
Referring back to the container network configuration settings, the ports field will appear with no entries, which is the root cause of this error message. Add 80:80 and 443:80 to the ports field and then save the container.
DNS **LINKED** Record
If the Configuring a DNS Zone step or Creating a LINKED Record step was skipped, an error will appear in the network diagram. To learn how to resolve this, refer to the previous steps.