To get started, make sure you have Docker installed on your system, and then clone this repository.
Next, navigate in your terminal to the directory you cloned this and Install laravel, make sure they are under the same root.
Spin up the containers by running docker-compose up -d
.
The following are built for our web server, with their exposed ports detailed:
- nginx -
:80
- mysql -
:3306
- php -
:9000
Use the following command examples from your project root, modifying them to fit your particular use case.
cp .env.example .env
docker-compose exec app composer install
docker-compose exec app php artisan key:generate
cp .env.production .env
docker-compose -f docker-compose.production.yml up -d --build
watchtower will restart container if app or web image update.