An open API service indexing awesome lists of open source software.

https://github.com/joelshepherd/laravel-docker-template

A production-ready docker template for Laravel applications.
https://github.com/joelshepherd/laravel-docker-template

docker laravel php production-ready

Last synced: about 1 year ago
JSON representation

A production-ready docker template for Laravel applications.

Awesome Lists containing this project

README

          

# Laravel Docker Template

A multi-stage, production-ready docker template for Laravel applications.
Plays well with continuous integration pipelines.

Used to power the Laravel API cluster behind [https://question.cafe](https://question.cafe).

## Features
- Production-ready
- Optimised for build time & size
- OPCache optimised for immutable environment
- phpredis for blazing-fast Redis (be sure to change client to `phpredis` in your `config/database.php` file)
- Frontend webpack asset compiling
- Backend composer requirements
- Ready to ship to a production cluster

## Requirements
- Docker version `>=17.05` (for multi-stage builds)

## How to use
1. Copy the `.docker` folder and `.dockerignore` into your project
2. Edit the configuration files as necessary (php extensions, different npm build command etc.)
3. Run `docker build -f .docker/build/Dockerfile .` and ship the image!