Skip to content

lkwg82/h2o.docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

h2o.docker

docker files for h2o http2 webserver, see https://h2o.examp1e.net/

version specific tags below


simplest run

docker run -p "8080:8080" -ti lkwg82/h2o-http2-server

test with

$ curl http://localhost:8080/
not found

A short tutorial can be found on https://blog.lgohlke.de/docker/h2o/2016/03/01/dockerized-h2o-webserver.html

A sample docker-compose file with reduced capability set

version: '3'

services:
  h2o:
    image: lkwg82/h2o-http2-server:v2.2.6
    ports:
       - "444:1443"
    volumes:
       - "/etc/h2o:/etc/h2o"
       - "/etc/letsencrypt:/etc/letsencrypt"
       - "/var/log/h2o:/var/log/h2o"
    working_dir: /etc/h2o
    restart: always
    cap_add:
       - setuid
       - setgid
       - chown
       - sys_admin
    cap_drop:
       - ALL

# vim: syntax=yaml expandtab

automatically ...

  • checks for new releases
  • create new tags with changed Dockerfile
  • pushes the tags
./check_releases.sh

in crontab

12 23 * * * bash -c 'cd ~/h2o.docker; git pull; ./check_releases.sh'

Tags