[go: up one dir, main page]

Skip to content

axis-sato/docker-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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