Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

Modified for usage as fall back Nginx docker container instance.

Build from GitHub

git clone
docker build -t centminmod/docker-nginx-mini docker-nginx-mini


Pull from Docker Hub

docker pull centminmod/docker-nginx-mini


Run the Docker image

docker run -p 80:80 -p 443:443 -d centminmod/docker-nginx-mini 

Navigate to http://<docker-host-ip>/ to check the installation.

or if you already have server on local docker host port 80/443, map local docker host port to 81/444

docker run -p 81:80 -p 444:443 -d -t centminmod/docker-nginx-mini

or give the docker container a unique name i.e. --name ngx1

docker run --name ngx1 -p 81:80 -p 444:443 -d -t centminmod/docker-nginx-mini

to login into the docker container named ngx1

docker exec -ti ngx1 /bin/bash

Nginx vhost directory at /etc/nginx/conf.d/

Navigate to http://<docker-host-ip>:81/ to check the installation.

Example Configuration

Make sure to build from GitHub or to include your own config files.

docker run -p 80:80 -p 443:443 \
-v /app/html \
-v $(pwd)/conf/nginx/default.conf:/etc/nginx/default.conf \
-v $(pwd)/conf/nginx/defaultssl.conf:/etc/nginx/defaultssl.conf \
-v $(pwd)/conf/nginx/nginx.conf:/etc/nginx/nginx.conf \
-v $(pwd)/conf/php/php-fpm.conf:/etc/php-fpm.d/www.conf \
-d centminmod/docker-nginx-mini

How to use nps command inside Docker Nginx Mini container

nps start                 # Start all processes
nps start <name>          # Start a specific process
nps stop                  # Stop all processes
nps stop <name>           # Stop a specific process
nps restart               # Restart all processes
nps restart <name>        # Restart a specific process
nps status                # Get status for all processes
nps status <name>         # Get status for a single process
nps log                   # Display last 1600 *bytes* of main log file
nps reload                # Restart Supervisord    
Docker Pull Command
Source Repository