Sign inSign up

mayden/centos7

By mayden

•Updated over 5 years ago

CentOS 7 Images

Image
0

172

mayden/centos7 repository overview

⁠CentOS 7 running Nginx and PHP7.4 FPM

This image will run nginx and PHP7.4 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 centos7:php74 \
  -v ./app:/var/www/html \
  -w /var/www/html \
  -p 8080:80 \
  mayden/centos7:php74

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 centos7:php74 \
  -v ./app:/var/www/html \
  -w /var/www/html \
  -p 8080:80
  mayden/centos7:php74

Tag summary

Content type

Image

Digest

Size

266.3 MB

Last updated

over 5 years ago

docker pull mayden/centos7:php74