- Use v1.0.0 - php 7.2
- Use v1.1.1 - php 7.4
- Use v2.0.0 - php 8.0 - current
-
Download and install docker in your system. Download here
-
Install composer here if you haven't
-
Clone your app inside the
project
folder. It must have/public
folder since the webserver looks for the index here- A new laravel / lumen application can be installed with:
composer create-project --prefer-dist laravel/laravel .
OR
composer create-project --prefer-dist laravel/lumen .
-
Rename root
.env.example
to.env
-
Move to the root folder and run
docker-compose up -d
-
Open your browser and go to http://localhost:8000
-
Enjoy!
-
Why port 8000?
- Sometimes you want your backend and frontend separated. You can have your frontend runs in the default
:80
and the API to be in port:8000
- Sometimes you want your backend and frontend separated. You can have your frontend runs in the default
-
Can we change this port?
- Yes. You can change the port in the
webserver
block of thedocker-compose.yml
file
- Yes. You can change the port in the
-
Is everything customizable?
- Yes. You can fiddle the
docker-compose.yml
file and make your own customization. Be sure you know what you are doing.
- Yes. You can fiddle the