Skip to content

jsdecena/docker-php-lemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplified dockerized php application

FOSSA Status

PHP versioning

  • Use v1.0.0 - php 7.2
  • Use v1.1.1 - php 7.4
  • Use v2.0.0 - php 8.0 - current

How to Install

  • Download and install docker in your system. Download here

  • Install composer here if you haven't

  • Clone your app inside the project folder. It must have /public folder since the webserver looks for the index here

    • A new laravel / lumen application can be installed with:
composer create-project --prefer-dist laravel/laravel .

OR

composer create-project --prefer-dist laravel/lumen .
  • Rename root .env.example to .env

  • Move to the root folder and run docker-compose up -d

  • Open your browser and go to http://localhost:8000

  • Enjoy!

FAQ

  • Why port 8000?

    • Sometimes you want your backend and frontend separated. You can have your frontend runs in the default :80 and the API to be in port :8000
  • Can we change this port?

    • Yes. You can change the port in the webserver block of the docker-compose.yml file
  • Is everything customizable?

    • Yes. You can fiddle the docker-compose.yml file and make your own customization. Be sure you know what you are doing.

Author

Jeff Simons Decena

License

FOSSA Status