This is a simple boilerplate to dockerize a Laravel project including services such as :
- nginx
- mysql
- php
- artisan
- composer
- npm
- Clone The Project
- docker-compose run --rm composer create-project laravel/laravel .
- docker-compose up -d server
- open project in localhost:8000
To upgrade the project you need to pull and re-create containers with the latest images. So you can stop containers and then run docker-composer with this options:
docker-compose up --force-recreate --build -d server
To run this service simply use this command:
docker-compose up -d phpmyadminThen you can open 192.168.10.80 to see phpmyadmin login page. Mysql user definition is in service/mysql/mysql.env you can use them to log in. To change the ip or port you can simply edit docker-compose.yml and phpmyadmin service.
