https://github.com/centminmod/docker-nginx-mini
Modified https://github.com/tropicloud/np-stack for Centmin Mod usage
https://github.com/centminmod/docker-nginx-mini
Last synced: 10 months ago
JSON representation
Modified https://github.com/tropicloud/np-stack for Centmin Mod usage
- Host: GitHub
- URL: https://github.com/centminmod/docker-nginx-mini
- Owner: centminmod
- Created: 2015-02-26T01:02:23.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-01T12:34:53.000Z (about 11 years ago)
- Last Synced: 2025-04-05T02:01:45.291Z (about 1 year ago)
- Language: Shell
- Size: 406 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Modified [https://github.com/tropicloud/np-stack](https://github.com/tropicloud/np-stack) for CentminMod.com usage as fall back Nginx docker container instance.
#### Build from GitHub
git clone https://github.com/centminmod/docker-nginx-mini.git
docker build -t centminmod/docker-nginx-mini docker-nginx-mini
or
#### Pull from Docker Hub
docker pull centminmod/docker-nginx-mini
then
#### Run the Docker image
docker run -p 80:80 -p 443:443 -d centminmod/docker-nginx-mini
Navigate to `http:///` 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://: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 # Start a specific process
nps stop # Stop all processes
nps stop # Stop a specific process
nps restart # Restart all processes
nps restart # Restart a specific process
nps status # Get status for all processes
nps status # Get status for a single process
nps log # Display last 1600 *bytes* of main log file
nps reload # Restart Supervisord