From baf25dbe87374fbcdbb09a4f8f04295b02cb7ef0 Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Mon, 1 Apr 2024 15:42:50 +0100 Subject: [PATCH] Fix #41 docuement how to change the application port listened on using EXPOSE --- repo-template-files/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/repo-template-files/README.md b/repo-template-files/README.md index 9673b85..d792117 100644 --- a/repo-template-files/README.md +++ b/repo-template-files/README.md @@ -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.