Skip to content

cuotos/receptionist

Repository files navigation

Receptionist

Receptionist is a very simple Golang application that creates a single page of links to the containers you have running on your server.

I run this on port 80 on my server, so I only ever need to remember the server hostname and Receptionist becomes the default landing page.

It's not a proxy of any sort, it just lists the ports that you want to show, by adding the label RECEPTIONIST to your containers.

Why

I run a small server at home with a number of docker images running, its purely for prototyping and is no a production quality setup. I always forget what tool is running on what port of that server, so I wanted a simple landing page that would list the running containers and which port that are listening on.

Usage

Receptionist

$ docker run -v /var/run/docker.sock:/var/run/docker.sock:ro -p 80:8080 cuotos/receptionist

Here Receptionist is running port 80 of the host server, this means you only need to go to http://hostname and not need to remember the port of Receptionist (but of course you can run it anywhere you want)

TLS

running the Docker container with both TLSCERTFILE and TLSKEYFILE env vars will cause Receptionist to look to this files for TLS certificate material and list for TLS requests

Additional Containers

You can add names to ports to make them easier to navigate in the ui. To do this set the RECEPTIONIST label to <name>:<internal port>

docker run --name webserver -l RECEPTIONIST=api:9999 -p 5555:9999 container/image

This will add the label "api" to the PRIVATE port 9999 (The port the docker container exposes, not where you have mounted it). Receptionist will the create a link to that port using its PUBLIC partner port.

Environment Variables (for Receptionist)

  • WATCHVAR - The environment variable for Receptionist to look for on running containers (default RECEPTIONIST).

Volumes

  • /var/run/docker.sock:ro - Receptionist needs to be able to see what containers are running on the Docker host.

Contributing

  • Builds are managed by goreleaser
  • Commit messages should follow the standards used in https://github.com/caarlos0/svu, so that svu can be used to pick the next tag.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages