Running this Flask application will serve a webpage showing all published TCP ports from all running docker containers, with hyperlinks to connect to them via HTTP/HTTPS.
I use this as a form of automatically updating home lab dashboard, so I can quickly connect to anything I'm running.
Normally, obviously, I use a proper reverse proxy. This is strictly for finding those things that I don't expose publicly, and can never remember which port they use (*arr, looking at you here!).
HOSTNAME=$(hostname -f) docker compose up -d # Note that without the `HOSTNAME` environment variable, the application will not be able to generate the correct URLs to connect to the published ports.
Then visit http://localhost:80/ to see the list of published ports.