NGINX Docker image suitable for multiple backend
2.2K
NGINX container for Indie Partners Project.
docker run -d -p "80:80" indiepartners/nginx
This variable declare what main domain you want to use.
HTTP_DOMAIN_NAME=staging.indie-partners.com_ which correspond to default server in Nginx.Additional domain you want to support for your server. You can add multiple alias by separating them with space.
HTTP_DOMAIN_ALIAS=dev.indie-partners.com toto.indie-partners.comChoose if you want to enable SSL for your website. By enabling it, you enable
let's encrypt cert generation for HTTP_DOMAIN_NAME as CN HTTP_DOMAIN_ALIAS as
subname. This container provide really strong SSL security, with support for
HSTP (A+ grade on sslabs).
If SSL_ENABLE=true you need to set SSL_EMAIL to a valid email address.
SSL_ENABLE=truefalseSet the admin email address to use for cert generation.
[email protected]Define the type of upstream you want to use with Nginx.
It can be :
UPSTREAM_TYPE=phpnoneName of the upstream service in compose. Usually same name as UPSTREAM_TYPE.
UPSTREAM_NAME=phpPort of the upstream service in compose. (Usually 9000 for php, 9090 for uWSGI).
UPSTREAM_PORT=9000Port of the upstream service in compose. (Usually 9000 for php, 9090 for uWSGI).
APP_ENDPOINT=app_stagingapp.Port of the upstream service in compose. (Usually 9000 for php, 9090 for uWSGI).
APP_WEBROOT=webpublic.In case you choose php UPSTREAM_TYPE, you can set the type of framework you use.
This is use to set Nginx rewriting rule for that project.
Currently supported:
PHP_FW=laravelsf4
sContent type
Image
Digest
Size
231.4 MB
Last updated
over 6 years ago
docker pull indiepartners/nginx