Git Product home page Git Product logo

docker-ampr's Introduction

Docker-AMPR

如何使用

  1. 安裝好 Docker

    官方安裝文件

  2. 複製 env 檔案 (環境變數)

     $ cp .env.example .env
  3. 執行

     $ make dev
  4. 完成了!

P.S. 預設網址: http://127.0.0.1:8080/

指令說明

指令 說明
$ make dev 執行 Docker-AMPR
$ make exec 進入 container 裡面
$ make del 解除安裝 Docker-AMPR

環境參數

參數 說明 預設值
APP_NAME docker container 名稱 web-php
APP_PORT docker port 8080
PHP_VERSION php 版本 7.2
REDIS_HOST redis host web-redis
REDIS_PORT redis port 6379
DB_DATABASE database 名稱 example
DB_HOST database host web-mysql
DB_PORT database port 3306
DB_USERNAME database 使用者名稱 root
DB_PASSWORD database 密碼 root

相關範例

在 Docker-AMPR 開發 Laravel 相關程式

  1. 進入 container 裡面

     $ make exec
  2. 安裝 laravel 相關套件

     $ composer create-project --prefer-dist laravel/laravel blog
  3. 完成!

P.S. 如果想查看 laravel 歡迎畫面,預設網址: http://127.0.0.1:8080/blog/public

docker-ampr's People

Contributors

andypanowlting avatar trend-andy-pan avatar

Stargazers

Jason Hong avatar

Watchers

James Cloos avatar Andy Pan avatar

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.