Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docker environment required to run Laravel (based on official php and mysql docker hub repositories)

NotificationsYou must be signed in to change notification settings

moacode/docker-apache-php-laravel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker environment required to run Laravel (based on official php and mysql docker hub repositories).

CircleCI

Source code

Requirements

  • Docker version 18.06 or later
  • Docker compose version 1.22 or later
  • An editor or IDE
  • MySQL Workbench

Note: OS recommendation - Linux Ubuntu based.

Components:

  1. Apache 2.4
  2. PHP 7.3 (Apache handler)
  3. MySQL 8
  4. Laravel 5.7

Setting up DEV environment

  1. Build and start the image from your terminal:
    docker-compose buildmake startmake composer-install
  2. Add domain to local 'hosts' file:
    127.0.0.1    localhost
  3. Set key for application:
    make sshphp artisan key:generate
  4. Make sure that you have installed migrations/seeds:
    make migratemake seed
  5. Configure Xdebug:
    • In case you need debug only requests from frontend in Firefox:
      • Edit /docker/development/xdebug.ini:
      xdebug.remote_autostart = 0
      • Restart container
      • Install locally in Firefox extension "Xdebug helper" and set in settings IDE KEY: PHPSTORM
      • Have fun with debugging
    • In case you need debug any request to an api:
      • Edit /docker/development/xdebug.ini:
      xdebug.remote_autostart = 1
      • Restart container
      • Have fun with debugging

Additional main command available:

```make startmake stopmake restartmake sshmake ssh-supervisordmake composer-installmake composer-updatemake infomake drop-migratemake migratemake seedmake phpunitetc....```Notes: Please see more commands in Makefile

Architecture & packages

General guidelines

Working on your project

  1. For new feature development, forkdevelop branch into a new branch with one of the two patterns:
    • feature/{ticketNo}
  2. Commit often, and write descriptive commit messages, so its easier to follow steps taken when reviewing.
  3. Push this branch to the repo and create pull request intodevelop to get feedback, with the formatfeature/{ticketNo} - Short descriptive title of Jira task".
  4. Iterate as needed.
  5. Make sure that "All checks have passed" on circleci and status is green.
  6. When PR is approved, it will be squashed & merged, intodevelop and later merged intorelease/{No} for deployment.

About

Docker environment required to run Laravel (based on official php and mysql docker hub repositories)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP90.1%
  • Dockerfile4.1%
  • HTML3.1%
  • Makefile1.8%
  • Other0.9%

[8]ページ先頭

©2009-2025 Movatter.jp