Skip to content

Nesio88/laravel_docker

Repository files navigation

Laravel Microservices

Instalação

Clonar Projeto

git clone https://github.com/Nesio88/laravel_docker.git

Criar o Arquivo .env

cp .env.example .env

Atualizar as variáveis de ambiente do arquivo .env

APP_NAME=Laravel
APP_URL=http://localhost:8000

DB_CONNECTION=mysql
DB_HOST=db_micro_client
DB_PORT=3306
DB_DATABASE=micro_client
DB_USERNAME=root
DB_PASSWORD=root

CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis

REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379

Subir os containers do projeto

docker-compose up -d

Acessar o container

docker-compose exec micro_client bash

Instalar as dependências do projeto

composer install

Gerar a key do projeto Laravel

php artisan key:generate

Rodar os testes

php artisan test

Acessar o projeto http://localhost:8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages