Skip to content

dananichev/docker-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes

  • It has hardcoded paths to resources
    • public_html folder (/home/dananichev/projects:/projects)
    • ssl folder (/etc/letsencrypt:/ssl) -- which contains ssl certificates
    • conf.d folder (/home/dananichev/containers/nginx/conf.d:/etc/nginx/conf.d) -- which basically points to the conf.d in this repo
  • It requires dhparam.pem (which must be present inside root folder at the build time)
    • to generate it run openssl dhparam -out dhparam.pem 2048 (feel free to choose key size by yourself)

Build

Run docker build -t nginx-alpine .

First time Run

Run ./run.sh (you can use docker start/docker stop/etc to control this container later)

Use as Service on Debian (optional)

  • Copy docker-nginx-daemon.service config file to /etc/systemd/system
  • Run sudo systemctl daemon-reload && sudo systemctl enable docker-nginx-daemon.service

About

Nginx container with HTTP2 and SSL support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages