Skip to content

vargalott/docker-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-laravel

This project provides you a working laravel environment without requiring you to install PHP, a web server, and any other server software on your local machine. For this, it requires Docker, Docker Compose and Task.

Usage

  1. Install Docker, Docker-compose and Task;

  2. Clone this project and then cd to the project folder;

  3. Run the initial build of the environment:

$ task init
  1. Install all composer and npm dependencies:
$ task composer -- i
$ task npm -- i
  1. Run the application using the command:
$ task up
  1. Create your own src/.env file by copying .env.example into the src folder:
$ cp .env.example src/.env

You also can just manually open the ./src/.env file, find the DB_HOST=127.0.0.1 line and change it to DB_HOST=mysql

  1. You've done! Main page is available on http://localhost, phpMyAdmin - http://localhost:3309

  2. After finishing work, stop the running containers:

$ task down

Other

If necessary, you can independently use composer, artisan or npm with the following commands:

$ task composer -- ...
$ task artisan -- ...
$ task npm -- ...

License

This project is licensed under the MIT License.

Credits

My thanks to the developers of the Docker and Task.

About

Laravel docker-compose template

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published