Skip to content

vintalie/setup-docker-laravel

 
 

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 projeto http://localhost:8989

About

Setup Docker Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 94.7%
  • Shell 5.3%