HTTP/2 Server - a modern Nginx web and proxy server docker container image with automatic Let's Encrypt certificates and HTTP/2 supports.
- get docker-compose.yml and change things for enable automatic SSL and HTTP/2
- set
LETSENCRYPT=trueif you want automatic certificate install and renewal LE_EMAILshould be your email
- set
- pull image -
docker-compose pull - if you don't want pre-built image, make you own.
docker-compose buildwill do it - start it
docker-compose up
If you install NPM, you can run commands via NPM:
npm run buildalias fordocker-compose build;docker imagesnpm startalias fordocker-compose up -d;docker psnpm stopalias fordocker-compose stop && docker rm $(docker ps -qa);docker ps -anpm run cleanalias fordocker rmi $(docker images | grep none | awk '{print $3}');docker images
- HTTP (80)
- HTTPS (443)
/etc/nginx/nginx configuration/etc/letsencryptlet's encrypt folder with certificates and information/www/sitesstatic files, usually one subfolder per site.
- image based on alpine
- image uses debian's
certbotpackage. script/entrypoint.shrequests LE certificate and will refresh every 70 days (default value).- http2-server on docker-hub
Created for hipsters in New.HR by new.hr-developers :)
See our job list: http://vacancy.new.hr