Skip to content

Commit b2404fd

Browse files
committed
Add docker installation section in README.md
1 parent 57a8679 commit b2404fd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ Minimalistic custom framework created for educational purposes.
1818
7. Start php server by running command `php -S 127.0.0.1:8080`
1919
8. Open in browser http://127.0.0.1:8080
2020

21+
------
22+
## Installation using docker
23+
Make sure you have docker installed. To see how you can install docker on Windows [click here](https://youtu.be/2ezNqqaSjq8). <br>
24+
Make sure `docker` and `docker-compose` commands are available in command line.
25+
26+
1. Clone the project using git
27+
1. Copy `.env.example` into `.env` (Don't need to change anything for local development)
28+
1. Navigate to the project root directory and run `docker-compose up -d`
29+
1. Install dependencies - `docker-compose exec app composer install`
30+
1. Run migrations - `docker-compose exec app php migrations.php`
31+
8. Open in browser http://127.0.0.1:8080
2132

2233
> The project was created along with Youtube Video Series "[Build PHP MVC Framework](https://www.youtube.com/playlist?list=PLLQuc_7jk__Uk_QnJMPndbdKECcTEwTA1)".
2334
> I appreaciate if you share it.

0 commit comments

Comments
 (0)