Skip to content

jsdecena/laradocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f59838b · Jan 11, 2019

History

3 Commits
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 11, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 11, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 11, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019
Jan 9, 2019

Repository files navigation

Simplified dockerized laravel application

How to Install

  • Download and install docker in your system. Download here

  • Install composer if you haven't here: Composer

  • Fork this project and clone in your system. Current version of laravel is 5.7.x

  • Run composer install && cp .env.example .env

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

  • Migrate your database and seed with:

docker exec -it app php artisan migrate --seed

FAQ

  • Why port 81?

    • 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 :81
  • 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