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.
To start the container type:
docker run -d --rm --name c6-php72 \
-v ./app:/var/www/html \
-w /var/www/html \
-p 8080:80 \
mayden/c6-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 c6-php72 \
-v ./app:/var/www/html \
-w /var/www/html \
-p 8080:80
mayden/c6-php72
Content type
Image
Digest
Size
292.9 MB
Last updated
over 6 years ago
docker pull mayden/c6-php72