https://github.com/schnapsterdog/laravel-docker-compose
https://github.com/schnapsterdog/laravel-docker-compose
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/schnapsterdog/laravel-docker-compose
- Owner: SchnapsterDog
- License: mit
- Created: 2022-09-04T01:45:41.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-13T12:02:15.000Z (about 3 years ago)
- Last Synced: 2025-02-23T22:42:51.123Z (8 months ago)
- Language: PHP
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Set-up Laravel Docker Compose
Based on https://github.com/aschmelyun/docker-compose-laravel.git
A pretty simplified Docker Compose workflow that sets up a LEMP network of containers for local Laravel development.
## ❔ What you need to run the Nginx Docker Container locally?
### Windows Users
- 👉 [Installed Docker Desktop](https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe)
- 👉 [Enabled WSL 2 feature on Windows](https://docs.docker.com/desktop/windows/wsl/)
- 👉 [Download and install the Linux kernel update package](https://docs.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package)---
## ⚙ Installation
### Project setup for Windows Users
Only once:
- open ubuntu app on windows
- clone the project
- navigate to the project folder
- copy .env.example file to .env
- `docker compose run --rm composer install`
- `docker compose build`
- `docker-compose run --rm artisan key:generate`Run the project locally
- `docker compose up`#### Composer dump autoload
- `docker-compose run --rm composer dump-autoload`#### Run Migration
- `docker-compose run --rm artisan migrate`#### Compiling front-end files
- `docker-compose run --rm npm run dev`