-
-
Notifications
You must be signed in to change notification settings - Fork 0
Laravel guide
Jose Gracia Berenguer edited this page Apr 9, 2020
·
1 revision
-
Clone the repository:
git clone https://github.com/Josee9988/Docker-Skeleton-LEMP.git
-
Go to the cloned project directory:
cd Docker-Skeleton-LEMP
- Modify the .env environment variables as you please.
-
Build the container
docker-compose up -d
- Test the container is working
- Create the Laravel application
Laravel official installation guide
```bash
composer create-project --prefer-dist laravel/laravel myLaravelProjectName
```
-
Move the Laravel files to the main directory (as the Laravel app would have been created inside a directory and we want these files in the actual one, not inside a folder)
cp myLaravelProjectName/. . -R
- Copy the .env configuration in the new .env file.
- Test to run any command inside the container.
docker exec -it skeletonApp-phpfpm bash # the name depends on the .env variable 'APPLICATION_NAME'
- Enjoy
This wiki is entirely made by Josee9988 to help the community!