Skip to content

rang501/docker-vhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-vhost

Nginx proxy that displays all the running Docker containers on your host machine on a single page, heavily influenced by nginx-proxy.

Run the container

Using the docker command:

CONTAINER="vhostdata" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -v /vhost \
  viljaste/data:latest

CONTAINER="vhost" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  --restart always \
  -p 80:80 \
  -p 443:443 \
  --volumes-from vhostdata \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e SERVER_NAME="localhost" \
  -e TIMEOUT="900" \
  -e PROTOCOLS="https" \
  -d \
  viljaste/vhost:latest

Using the docker-compose command

TMP="$(mktemp -d)" \
  && GIT_SSL_NO_VERIFY=true git clone https://git.beyondcloud.io/viljaste/docker-vhost.git "${TMP}" \
  && cd "${TMP}" \
  && sudo docker-compose up

Build the image

TMP="$(mktemp -d)" \
  && GIT_SSL_NO_VERIFY=true git clone https://git.beyondcloud.io/viljaste/docker-vhost.git "${TMP}" \
  && cd "${TMP}" \
  && sudo docker build -t viljaste/vhost:latest . \
  && cd -

License

MIT