Sign inSign up

indiepartners/nginx

By indiepartners

Updated over 6 years ago

NGINX Docker image suitable for multiple backend

Image
0

2.2K

indiepartners/nginx repository overview

Nginx docker image

NGINX container for Indie Partners Project.

How to use it ?

docker run -d -p "80:80" indiepartners/nginx

Customize it

HTTP_DOMAIN_NAME

This variable declare what main domain you want to use.

  • Example: HTTP_DOMAIN_NAME=staging.indie-partners.com
  • Default value is _ which correspond to default server in Nginx.
HTTP_DOMAIN_ALIAS

Additional domain you want to support for your server. You can add multiple alias by separating them with space.

  • Example: HTTP_DOMAIN_ALIAS=dev.indie-partners.com toto.indie-partners.com
  • Default value is empty.
SSL_ENABLE

Choose 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.

  • Example: SSL_ENABLE=true
  • Default value is false
SSL_EMAIL

Set the admin email address to use for cert generation.

UPSTREAM_TYPE

Define the type of upstream you want to use with Nginx.

It can be :

  1. php : You want to use a php project
  2. python : You want to use a python project on uWSGI
  3. node : You want to use a nodejs server as backend
  4. none : You only want plain http
  • Example: UPSTREAM_TYPE=php
  • Default value is none
UPSTREAM_NAME

Name of the upstream service in compose. Usually same name as UPSTREAM_TYPE.

  • Example: UPSTREAM_NAME=php
  • No default value provided.
  • Rem: sys_temp_dir will be prefixed with /var/www/app (id. /var/app/www/tmp).
UPSTREAM_PORT

Port of the upstream service in compose. (Usually 9000 for php, 9090 for uWSGI).

  • Example: UPSTREAM_PORT=9000
  • No default value provided.
APP_ENDPOINT

Port of the upstream service in compose. (Usually 9000 for php, 9090 for uWSGI).

  • Example: APP_ENDPOINT=app_staging
  • Default value is app.
APP_WEBROOT

Port of the upstream service in compose. (Usually 9000 for php, 9090 for uWSGI).

  • Example: APP_WEBROOT=web
  • Default value is public.
PHP_FW

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:

  1. sf2
  2. sylex
  3. sf4
  4. laravel
  • Example: PHP_FW=laravel
  • Default value is sf4 s

Tag summary

Content type

Image

Digest

Size

231.4 MB

Last updated

over 6 years ago

docker pull indiepartners/nginx