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=true
if you want automatic certificate install and renewal LE_EMAIL
should be your email
- set
- pull image -
docker-compose pull
- if you don't want pre-built image, make you own.
docker-compose build
will do it - start it
docker-compose up
If you install NPM, you can run commands via NPM:
npm run build
alias fordocker-compose build;docker images
npm start
alias fordocker-compose up -d;docker ps
npm stop
alias fordocker-compose stop && docker rm $(docker ps -qa);docker ps -a
npm run clean
alias fordocker rmi $(docker images | grep none | awk '{print $3}');docker images
- HTTP (80)
- HTTPS (443)
/etc/nginx/
nginx configuration/etc/letsencrypt
let's encrypt folder with certificates and information/www/sites
static files, usually one subfolder per site.
- image based on alpine
- image uses debian's
certbot
package. script/entrypoint.sh
requests 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