Sign inSign up

mayden/centos6

By mayden

•Updated about 6 years ago

CentOS 6 images

Image
0

109

mayden/centos6 repository overview

⁠CentOS 6 running Nginx and PHP7.2 FPM

This image will run nginx and PHP7.2 FPM, FPM is run on a socket and access through nginx on port 80 You will need to mount your code into the container, or use this as a base image when you build your application image.

⁠Using the image

To start the container type:

docker run -d --rm --name centos6:php72\
  -v ./app:/var/www/html \
  -w /var/www/html \
  -p 8080:80 \
  mayden/centos6:php72

Now you can access your application at http://localhost:8080⁠ from your host system.

If you want to send the logs to an Elastic Stack, add the ELK_HOST variable to the container start up.

docker run -d --rm -e 'ELK_HOST=redis' --name centos6:php72 \
  -v ./app:/var/www/html \
  -w /var/www/html \
  -p 8080:80
  mayden/centos6:php72

Tag summary

Content type

Image

Digest

Size

307.6 MB

Last updated

about 6 years ago

docker pull mayden/centos6:php72