Public | Automated Build

Last pushed: 3 years ago
Short Description
dynamic nginx configuration, dockerized.
Full Description

nginx image with dynamic configuration

Based on ubuntu:latest


This image adds a small default configuration that can be used for testing. For "production" usage, you should mount a local folder, where the "sites-enabled" are pulled on start.

All the configurations are piped through Envplate so you can use environment variables in your nginx sites.

Example envplate

server {



Run configurations

Default (for testing)

docker run -d -P smartive/dynamic-nginx

With local configurations

docker run -d -P -v $PWD/nginx/:/sites smartive/dynamic-nginx



Mounted folder that contains all the configurations for nginx. Those files are copied on every startup into the /etc/nginx/sites-enabled folder and run though envplate.

Docker Pull Command
Source Repository