Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.16 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.16 KB

NGINX Docker Image

Docker container to install and run NGINX.

Build Status

Automated Build

What is NGINX ?

NGINX (High-performance web server or proxy server) is a better alternative APACHE.

Getting image

docker pull pomirleanu/nginx

Basic usage

docker run -v /path/to/your/app:/var/www/html -d pomirleanu/nginx

Running your NGINX Web Server

Running image

Run the NGINX image, mounting a directory from your host.

docker run -it --name nginx -v /path/to/your/app:/var/www/html pomirleanu/nginx

or using Docker Compose:

version: '2'
services:
  nginx:
    container_name: nginx
    image: pomirleanu/nginx
    entrypoint: nginx
    volumes:
      - /path/to/your/app:/var/www/html

Logging

docker logs nginx

or using Docker Compose:

docker-compose logs nginx