Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wsawebmaster/docker-laravel11

Ambiente para desenvolvimento Docker com Laravel 11 e PHP 8.3
https://github.com/wsawebmaster/docker-laravel11

Last synced: 7 days ago
JSON representation

Ambiente para desenvolvimento Docker com Laravel 11 e PHP 8.3

Awesome Lists containing this project

README

        

Laravel Logo


Build Status
Total Downloads
Latest Stable Version
License

# Ambiente para desenvolvimento Docker com Laravel 11 e PHP 8.3

### Passo a passo
Clone Repositório
```sh
git clone https://github.com/wsawebmaster/docker-laravel11.git
```
```sh
cd docker-laravel-11
```

Suba os containers do projeto
```sh
docker-compose up -d
```

Crie o Arquivo .env
```sh
cp .env.example .env
```

Acesse o container app
```sh
docker-compose exec app bash
```

Instale as dependências do projeto
```sh
composer install
```

Gere a key do projeto Laravel
```sh
php artisan key:generate
```

Rodar as migrations
```sh
php artisan migrate
```

Saia do container
```sh
exit
```
Acesse o projeto
[http://localhost:8000](http://localhost:8000)

---
---
### Se necessário, ajuste as permissões com:

sudo chmod -R 755 .docker/mysql/dbdata/

### Remover todos os contêineres, redes e volumes definidos no arquivo docker-compose.yml

docker-compose down

### Remover contêineres, imagens e limpar redes não utilizadas.

[ "$(docker ps -q)" ] && docker stop $(docker ps -q); [ "$(docker ps -aq)" ] && docker rm $(docker ps -aq); [ "$(docker images -q)" ] && docker rmi $(docker images -q); docker network prune -f

---
---

### 📧 Contato

[LinkedIn](https://www.linkedin.com/in/wsawebmaster/)

[[email protected]](mailto:[email protected])