Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.03 KB

README.md

File metadata and controls

64 lines (42 loc) · 1.03 KB

docker-laravel

Laravel environment on docker.

Support

Installation

1. Add docker-laravel as a submodule

Add docker-laravel as a submodule in your project.

$ cd YOUR_PRJECT
$ git submodule add git@github.com:c8112002/docker-laravel.git docker

Usage

1. Setup .env

Copy env-exaple as .env.

$ cp env-example .env

Then, edit .env for your environment.

2. Build and run containers

$ docker-compose up -d

3. Create a laravel project

$ sh scripts/dev.sh create-project

4. Configure your laravel project if necessary

Edit the configuration files shown below according to your environment.

  • APP_NAME/.env
  • APP_NAME/config/*.php

See the official laravel website if you want to know how to configuration more.

5. Watch assets for changes

$ sh scripts/dev.sh watch