[Dokku] Network understanding
When I ran up Dokku container, I map the host port 8080 to Dokku container port 80. With this configuration, all external requests to Dokku have to reach the host port 8080 first and then they can reach the app deployed by Dokku. In Dokku container, Dokku server still listens to the port 80, 443, 22. Therefore, the port mapping from host to Dokku container looks like 8080:80 8443:443 5022:22 Again in Dokku container, the app’s nginx should listen to port 80. It’s because external requests will hit host port 8080, then will be converted to Dokku container port 80. Afterwards, Dokku app’s nginx can detect the requests and route them to the matching app according to the domain name. ...