Skip to content

dmytro-liashko-dev/docker-php-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker PHP-FPM + Nginx installation

This repository acts as a skeleton for setting up new applications using PHP-FPM and Nginx which are executed inside Docker.

What is included

  • PHP 8.0 setup (including Xdebug and correct permissions for write files for PHP process)
  • Nginx setup, including redirecting every request to index.php (useful for PHP frameworks).
  • Script for running the Composer.
  • Script-wrapper to run console scripts within php-fpm container.
  • MySQL container setup

Usage

  1. Download repository files (more preferable via Zip file, if you want to keep your our application under source control)
  2. Go to repository folder
  3. sh setup.sh
  4. sh composer.sh init (if you want to use Composer).
  5. Install your application inside app folder.
  6. Run docker-compose up.
  7. ...Congratulations! You can now access your application via http://localhost .

Note:

You can run arbitrary console commands within PHP-FPM container using handy script:

./run-scipt.sh your-script-name with arguments

Example:

./run-script.sh bin/console

About

Configuration for setting up PHP-FPM + Nginx using Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published