Collection of NGINX templates for env var substitution.
$ docker pull joshuamarquez/dyn-nginx
You need to specify template names separated by comma in TEMPLATES
environment variable.
TEMPLATES=TEMPLATE_01,TEMPLATE_02
Node.js with Socket.IO
Template name: NODE_JS_SOCKET_IO
This template ha special configuration for Node.js Apps with support for Socket.IO.
Environment variables
NODE_JS_SOCKET_IO_PORT
- Port to listen inside container, e.g.80
.NODE_JS_SOCKET_IO_TARGET
: Target name, e.g.example.com:8080
.
Minio
Template name: MINIO
This template ha special configuration for Minio.
Environment variables
MINIO_PORT
- Port to listen inside container, e.g.80
.MINIO_TARGET
: Target name, e.g.example.com:8080
.
In the example below we will use template NODE_JS_SOCKET_IO
.
First set env vars in .env
file.
TEMPLATES=NODE_JS_SOCKET_IO
NODE_JS_SOCKET_IO_PORT=80
NODE_JS_SOCKET_IO_TARGET=example.com:8080
Then run dyn-nginx
.
$ docker run --rm --env-file .env joshuamarquez/dyn-nginx
- All
/etc/nginx/conf.d/*.conf
files are removed before insertingtemplate.conf
files.