Skip to content

Simple modern Nginx image Alpine based with integrated Let's Encrypt support

Notifications You must be signed in to change notification settings

NewHR/http2-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP/2 Server

Simple modern Nginx server image based Alpine with integrated Let's Encrypt support

HTTP/2 Server - a modern Nginx web and proxy server docker container image with automatic Let's Encrypt certificates and HTTP/2 supports.

How to use

  • 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
  • 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

Via NPM

If you install NPM, you can run commands via NPM:

  • npm run build alias for docker-compose build;docker images
  • npm start alias for docker-compose up -d;docker ps
  • npm stop alias for docker-compose stop && docker rm $(docker ps -qa);docker ps -a
  • npm run clean alias for docker rmi $(docker images | grep none | awk '{print $3}');docker images

Interface

Ports

  • HTTP (80)
  • HTTPS (443)

Paths/Volumes

  • /etc/nginx/ nginx configuration
  • /etc/letsencrypt let's encrypt folder with certificates and information
  • /www/sites static files, usually one subfolder per site.

Some implementation details

  • 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

About

Created for hipsters in New.HR by new.hr-developers :)

Need a JOB?

See our job list: http://vacancy.new.hr

About

Simple modern Nginx image Alpine based with integrated Let's Encrypt support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages