Skip to content

Commit

Permalink
Merge pull request #43 from KarmaComputing/41-as-developer-I-can-use-…
Browse files Browse the repository at this point in the history
…custom-port

Fix #41 document how to change the application port listened on using EXPOSE
  • Loading branch information
chrisjsimpson authored Apr 1, 2024
2 parents 9d6049e + baf25db commit 8bbf237
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repo-template-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ Ta-da! You'll be inside the [Python debugger](https://docs.python.org/3/library/
## Questions

- How was this built? [All code is here](https://github.com/KarmaComputing/container-hosting)
- How can I use a customized port numberi/change the port number listened on? You don't need to do this if you use the quickstarts. But if you do want to alter the port: Edit your `Dockerfile` and change `EXPOSE` to the port number you want your app to listen on. Understand that all apps go through the proxy (nginx) listening on port `80` and `443`, requests to your app get proxied (based on your hostname) to the port number you put after `EXPOSE` in your your `Dockerfile`. For example `EXPOSE 3000` means you want the Dokku nginx proxy to forward port `80` and `443` connections to port `3000`. You still need to make your application listen on your chosen port.

0 comments on commit 8bbf237

Please sign in to comment.