This is a starter pack to start developing your next $1 Billion app using Laravel in just a few minutes.
This starter pack is also suitable for any other PHP project/framework.
Starter pack includes:
- nginx
- PHP 7.3
- Composer
- PostgreSQL 12
- Laravel starter code
Having docker and docker-compose installed.
If you are not familiar with docker then check out Set up your Docker environment article from Docker's official web site.
If you don't have docker-compose installed then check out the installation guide from official web site.
- Clone the project and bring the containers up:
git clone laravel-docker-starter-pack && cd laravel-docker-starter-pack docker-compose up
- install composer packages:
docker-compose exec -w /var/www/html php composer install - Navigate to http://localhost:8080
- Done!
Database created by default and that should be used for your application is app.
Username is docker and password is secret.
To connect to postgres DB from php application use db as a host name and default port (5432).
To connect from the host machine use localhost as the host name and port 54321.
PS! Default Laravel code that comes with the starter pack has everything already configured.
docker-compose exec -w /var/www/html php php artisan <command>This project is licensed under the MIT License - see the LICENSE.md file for details.