Docker container to install and run NGINX.
NGINX (High-performance web server or proxy server) is a better alternative APACHE.
docker pull pomirleanu/nginx
docker run -v /path/to/your/app:/var/www/html -d pomirleanu/nginx
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
docker logs nginx
or using Docker Compose:
docker-compose logs nginx