Skip to content

Basic example of running a basic PHP app using NGINX + PHP-FPM (separate containers)

License

Notifications You must be signed in to change notification settings

clarenceb/php-fpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGINX + PHP-FPM example

Basic example of running a basic PHP app using NGINX + PHP-FPM (separate containers).

Steps:

docker build -t php-fpm -f Dockerfile.php-fpm .

docker-compose up -d
docker-compose logs -f

curl http://localhost:8080/info.php

docker-compose down

Notes:

  • For this simple demo, creating a custom image for FPM is not necessary. You can just update the docker-compose.yml file to use the image php:7.2-fpm directly. I added a custom image as an example for installing additional dependencies and php extensions (e.g. to access mysql).

Credits:

About

Basic example of running a basic PHP app using NGINX + PHP-FPM (separate containers)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages