• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

especializati/setup-docker-laravel: Setup Docker Laravel

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

especializati/setup-docker-laravel

开源软件地址(OpenSource Url):

https://github.com/especializati/setup-docker-laravel

开源编程语言(OpenSource Language):

Dockerfile 100.0%

开源软件介绍(OpenSource Introduction):

Setup Docker Para Projetos Laravel (8 ou 9)

Assine a Academy, e Seja VIP!

Passo a passo

Clone Repositório

git clone https://github.com/especializati/setup-docker-laravel.git

Clone os Arquivos do Laravel

git clone https://github.com/laravel/laravel.git app-laravel

Copie os arquivos docker-compose.yml, Dockerfile e o diretório docker/ para o seu projeto

cp -rf setup-docker-laravel/* app-laravel/
cd app-laravel/

Crie o Arquivo .env

cp .env.example .env

Atualize as variáveis de ambiente do arquivo .env

APP_NAME=EspecializaTi
APP_URL=http://localhost:8989

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=nome_que_desejar_db
DB_USERNAME=nome_usuario
DB_PASSWORD=senha_aqui

CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis

REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379

Suba os containers do projeto

docker-compose up -d

Acessar o container

docker-compose exec app bash

Instalar as dependências do projeto

composer install

Gerar a key do projeto Laravel

php artisan key:generate

Acessar o projeto http://localhost:8989




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap