Skip to content

pimentelarpn/setup-docker-laravel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Docker Para Projetos Laravel (8, 9, 10 ou 11)

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="Especializa Ti"
APP_URL=http://localhost:8989

DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=root

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

About

Setup Docker Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%