Skip to content

A basic PHP/Docker/NGINX Image. The NGINX and MySql images are both trusted images and for the PHP container the php:7.3-fpm-alpine with some changes for composer and file permissions.

Notifications You must be signed in to change notification settings

blwsh/basic-php-mysql-nginx-docker

Repository files navigation

MVC Framework

Tools used for this project

  • docker-compose - Used for local development
  • docker-sync - Speeds up local dev environment on Mac and windows
  • Sass/scss - A css precompiler which offers additional functionality to css
  • Browsersync - A tool used to auto-reload and auto-inject changes in to the browser
  • Gulp - A tool which runs repetative tasks for you automatically.

Setup

  • Install docker
    • Install docker-compose and docker-sync
    • Run docker-compose up
    • Run docker-compose up exec php composer Install
    • Go to localhost in your browser

To make Scss changes

  • Install node 10
  • Install gulp globally
  • Install browserify globally (Optional)
  • Run gulp watch and make changes to scss files.

Notes

  • The view engine dies when rendering large pages. Temp solution; paginate :D

About

A basic PHP/Docker/NGINX Image. The NGINX and MySql images are both trusted images and for the PHP container the php:7.3-fpm-alpine with some changes for composer and file permissions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published