Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gowrizrh/laravel-docker
A docker compose environment for Laravel, with minimal configuration.
https://github.com/gowrizrh/laravel-docker
docker docker-compose laravel
Last synced: 20 days ago
JSON representation
A docker compose environment for Laravel, with minimal configuration.
- Host: GitHub
- URL: https://github.com/gowrizrh/laravel-docker
- Owner: gowrizrh
- Created: 2024-10-16T00:32:11.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-16T00:41:33.000Z (3 months ago)
- Last Synced: 2024-10-29T14:21:56.030Z (2 months ago)
- Topics: docker, docker-compose, laravel
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Docker
A docker compose setup for local development.
## Install new project
1. Run `setup.sh` to create a `.env` file
2. `docker compose run php create-project laravel/laravel .`
3. `docker compose up -d`
4. `docker compose exec php bash`
5. `php artisan show`### Sample configuration
DB
```
DB_CONNECTION=pgsql
DB_HOST=db
DB_PORT=5432
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=laravel
```Redis
```
REDIS_CLIENT=phpredis
REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379
```
```
MAIL_MAILER=smtp
MAIL_HOST=mail
MAIL_PORT=1025
```