Go to file
2021-08-20 11:28:41 -04:00
app First! 2021-08-20 11:28:41 -04:00
Dockerfile First! 2021-08-20 11:28:41 -04:00
README.md First! 2021-08-20 11:28:41 -04:00

docker-nginx-auto

Nginx with tricks

  • OpenResty
  • Snippets for TLS/SSL, gzip, reverse proxy, websocket proxy, and proxy cache
  • Automatic Let's Encrypt certificate
  • Automatic reload on configuration change

Production:

docker run -d --name=docker-nginx-auto \
	-e ACME_EMAIL=user@host \
	-p 80:80 -p 443:443 \
	-v nginx-config:/usr/local/openresty/nginx/conf \
	docker-nginx-auto

Staging:

docker run -d --name=docker-nginx-auto \
	-e ACME_STAGING=true \
	-p 80:80 -p 443:443 \
	-v nginx-config:/usr/local/openresty/nginx/conf \
	docker-nginx-auto