Sign inSign up

zchee/h2o-proxy

By zchee

•Updated about 11 years ago

Automated h2o reverse proxy for Docker containers. An alternative jwilder/nginx-proxy.

Image
0

9.1K

zchee/h2o-proxy repository overview

⁠Feature

h2o-proxy sets up a container running H2O⁠ and docker-gen⁠.
docker-gen generates reverse proxy configs for H2O and reloads H2O use start_server when containers are started and stopped.
An alternative jwilder/nginx-proxy⁠.

Based FROM image is zchee/docker-h2o⁠.

⁠Usage

To run it:

$ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro zchee/h2o-proxy

Then start any containers you want proxied with an env var VIRTUAL_HOST=subdomain.youdomain.com

$ docker run -e VIRTUAL_HOST=foo.bar.com  ...

Provided your DNS is setup to forward foo.bar.com to the a host running h2o-proxy, the request will be routed to a container with the VIRTUAL_HOST env var set.

If your are using boot2docker start h2o-proxy with:

$ $(boot2docker shellinit)
$ docker run -p 80:80 -e DOCKER_HOST -e DOCKER_CERT_PATH -e DOCKER_TLS_VERIFY -v $DOCKER_CERT_PATH:$DOCKER_CERT_PATH -it zchee/h2o-proxy

⁠TODO

  • Support HTTP/2 Reverse Proxy ( Wait for the support of H2O )
  • Not dependent perl and Server::Starter
    • start_server use a included script in the H2O
  • Tuning performance default h2o.conf
  • Tuning performance default sysctl.conf

Tag summary

Content type

Image

Digest

sha256:b27bfb1bb…

Size

313.9 MB

Last updated

about 11 years ago

docker pull zchee/h2o-proxy