Giter VIP home page Giter VIP logo

laravel-docker's Introduction

laravel-docker

概要

  • 多くのアプリケーションで必要となる環境設定を全て終えた状態のLaravel実行環境。
  • PostgreSQL, MySQL 両対応。docker-compose.yml はPostgreSQLを想定。
  • VSCode Remote Containers と併せて使うことで必要な開発ツールが全てインストールされる。

接続(VSCode)

  • Remote - Containers をインストール
  • このリポジトリをワークスペースとして開く
  • コマンドパレットより次のコマンドを実行

    Dev Containers: Reopen in Container
    開発コンテナー: コンテナーで再度開く

セットアップ(初回のみ)

# URL には対象プロジェクトのリポジトリURLを指定
container $ git clone URL ./
container $ composer install
container $ npm install
container $ ./artisan migrate:fresh --seed
container $ npm run build

ER図の出力

host $ docker compose -f docker-compose.yml -f docker-compose.schemaspy.yml run --rm schemaspy

  • schema/ ディレクトリ配下にER図が出力される

URL

アプリケーション URL 備考
Laravel http://localhost:8000/ -
Mailpit http://localhost:8025/ -

.env によるカスタマイズ(任意)

環境変数 意味 デフォルト
APP_DEBUG Laravel設定 true
PORT_WEB_APP 公開ポート / Laravel 8000
PORT_PGSQL 公開ポート / PostgreSQL 0 非公開
PORT_WEB_MAIL 公開ポート / Mailpit 8025
PORT_BROWSERSYNC 公開ポート / Browsersync 3000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.