HUB
Sign inSign up

vikas027/centos-nginx-php

By vikas027

•Updated over 10 years ago

CentOS with Nginx 1.9 and PHP 5.6 (with apc caching and fpm)

Image
0

2.3K

vikas027/centos-nginx-php repository overview

⁠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

⁠Some Extras
  • php-fpm (FastCGI Process Manager) listenting on a socket to reduce some overhead
  • apc (php cacher)
  • sshd
  • crond

More details are available on Docker Hub Registry⁠.

⁠Docker Installation

Install Docker⁠ on your favourite distro and run the container

⁠Run 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.

http://<IP>:<Port>/info.php

Tag summary

Content type

Image

Digest

Size

322.7 MB

Last updated

over 10 years ago

docker pull vikas027/centos-nginx-php