Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wsawebmaster/docker-laravel11
- Owner: wsawebmaster
- Created: 2025-01-03T04:21:35.000Z (27 days ago)
- Default Branch: main
- Last Pushed: 2025-01-10T17:39:23.000Z (20 days ago)
- Last Synced: 2025-01-10T18:40:01.088Z (19 days ago)
- Language: PHP
- Size: 5.77 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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])