Public | Automated Build

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

nginx image with dynamic configuration

Based on ubuntu:latest

Description

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

    server_name ${ENVIRONMENTAL_LOCAL_HOST_NAME};

    ...
}

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

Folders

/sites

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
Owner
smartive
Source Repository

Comments (0)