mikeage / whatsrunning

Create a barebones webpage showing all docker containers that expose ports
43 stars 1 forks source link

Show published ports from all docker containers

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!).

Usage

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.

Screenshot

Sample Screenshot showing a list of containers and their published endpoints