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