-
Clone or download this repository, then go to the project path and run the following commands
-
Run
cd docker
-
Rename
.env.example
file to.env
. Update.env
to your specific needs- If you change database config in
docker-compose.yml
then you need to update.env
file with new values.
- If you change database config in
-
Run
docker-compose up -d --build
- Run
docker ps
It is expected that you will have these containers in results: my-nginx my-mysql blog-app.
- Run
-
Run
docker exec -it blog-app bash
-
Run
composer install
-
RUN
php artisan migrate
-
RUN
npm install
-
RUN
npm run dev
-
Run Tests
vendor/bin/phpunit
After installation, you can access with this address http://127.0.0.1:8080/ on your browser.