Docker Container for running nginx on CentOS 7
The docker container is based on CentOS 7.
Nginx 1.9 has been installed to support php v5.6
- php-fpm (FastCGI Process Manager) listenting on a socket to reduce some overhead
- apc (php cacher)
More details are available on Docker Hub Registry.
Install Docker on your favourite distro and run the container
Run the below commands to run the container
docker pull vikas027/centos-nginx-php OR docker run --name <any_name> -e 'TIMEZONE=Canada/Central' -e 'ROOT_PASS=secret' -d -p <host_http_port>:80 -p <host_ssh_port>:22 -v <path_of_website_files>:/usr/share/nginx/html vikas027centos-nginx-php
Once the container is up, you can browse to below link and see if everything is working for you as expected.