Nginx proxy that displays all the running Docker containers on your host machine on a single page, heavily influenced by nginx-proxy.
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
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 -
MIT