Sign inSign up

bohan/sb-nginx

By bohan

•Updated almost 5 years ago

https://github.com/brentybh/docker-sb-nginx

Image
0

2.7K

bohan/sb-nginx repository overview

⁠Docker image for sb-nginx

⁠What's sb-nginx?

sb-nginx⁠ is a Debian package by SB Professional Services⁠ / xTom⁠ offering a nginx build supports:

  • Brotli compression
  • OpenSSL 1.1.1 with TLS 1.3 support
  • GeoIP2

⁠Awesome Usage

Put your config files (nginx.conf etc.) inside a folder, for example: ~/nginx-config.

Then run the container:

docker run --name nginx --net host --restart always -v $HOME/nginx-config:/usr/src/docker-nginx/conf:ro -d bohan/sb-nginx:1.17.7

You must mount the config dir to this specific /usr/src/docker-nginx/conf path!

Your existing config files will replace default config files.

⁠Reload Changed Configuration

You can even change your configuration after the container start and apply them without any downtime.

After change, run the command:

docker exec nginx docker-nginx-reload.sh

This docker-nginx-reload.sh script will test your new configuration and reload the server. It will rollback if the test fails.

Tag summary

Content type

Image

Digest

Size

53.9 MB

Last updated

almost 5 years ago

docker pull bohan/sb-nginx