Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Checkout the repository or download the sources.
Simply run docker-compose up -d
and you are done.
Nginx will be available on localhost:80
and PostgreSQL on localhost:5432
.
docker-compose run composer <cmd>
Where cmd
is any of the available composer command.
Default connection:
docker-compose exec db psql -U postgres
Using .env file default parameters:
docker-compose exec db psql -U dbuser dbname
If you want to connect to the DB from another container (from the php
one for instance), the host will be the service name: db
.
You can execute any command on the php
container as you would do on any docker-compose container:
docker-compose exec php php -v
To change PHP's configuration edit .docker/php/php.ini
.
Same goes for .docker/php/xdebug.ini
.
docker-compose rm --all
docker-compose pull
docker-compose build --no-cache
docker-compose up -d --force-recreate