Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/iliasderos/laravel-production-ready


https://github.com/iliasderos/laravel-production-ready

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

Example of a laravel stack running on docker in dev and in production.

Production setup is based off https://github.com/richdynamix/arc

```sh
# Open shell
docker-compose run --rm --entrypoint sh php
```

## Development Environment

Use `src/blog/docker-compose.yml` for local development

```sh
cd src/blog/docker-compose.yml
docker-compose up
# See your app at http://localhost
```

## Deploying to production

For **complex apps** with multiple microservices, you can refer to the kubernetes-ready script at`src/blog/tools/travis/deploy/production.sh`

For a **simple laravel app** like this one, you only need to dockerize the application, and connect to your existing database & cache.
```sh
cd src/blog/
docker-compose build web
```