Giter Club home page Giter Club logo

webstacklaravel's Introduction

项目介绍

根据WebStackLaravel项目创建的Docker部署版本,旨在快速进行部署和使用,也总结了一些这个项目的使用经验及排错方法。此后会根据此项目Release版本不定期更新。欢迎使用及建议

使用说明

包含直接执行docker run的方式以及docker-compose的方式,推荐使用docker-compose的方法,另外添加了支持参数的说明

  • 镜像支持的参数
参数 说明
INSTALL_DIR 容器内的部署家目录
DB_HOST 数据库地址,默认127.0.0.1
DB_PORT 数据库端口,默认3306
DB_DATABASE 数据库名称,默认homestead
DB_USERNAME 数据库用户名,默认homestead
DB_PASSWORD 数据库密码,默认secret
LOGIN_COPTCHA 是否启动控制台验证码,默认true
  • 使用docker run方式 注意由于webstacklaravel需要mysql支持,所以直接使用docker run需要手动指定Mysql的地址信息 目前支持的参数

  • 使用Docker-compose方式 使用compose命令会起3个容器,第一次启动默认会进行数据库初始化

docker-compose up

WARING: 当只想启动数据库,不进行初始化的话,需要修改docker-compose.yml文件中的command指令

#修改前
command: ['/entrypoint.sh','new-server']
#修改后
command: ['/entrypoint.sh','serve']

具体可查看entrypoint.sh脚本,Dockerfile的默认参数是serve

常见问题

针对一些原项目的提问在这里做一下汇总,欢迎补充

  • 改变监听地址 可以通过Nginx Proxy进行代理,或者添加--host参数
php artisan serve --host=0.0.0.0 --port=8000
  • 推荐使用Mysql5.6版本

webstacklaravel's People

Contributors

gourds avatar garryforreg avatar

Watchers

James Cloos 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.