Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iliasderos/laravel-production-ready
https://github.com/iliasderos/laravel-production-ready
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/iliasderos/laravel-production-ready
- Owner: IliasDeros
- Created: 2022-11-28T04:06:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T04:41:44.000Z (about 2 years ago)
- Last Synced: 2024-11-11T04:41:33.594Z (2 months ago)
- Language: PHP
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```