Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-fans/laravel-docker
Full Laravel production environment for Docker
https://github.com/laravel-fans/laravel-docker
composer docker laravel
Last synced: 23 days ago
JSON representation
Full Laravel production environment for Docker
- Host: GitHub
- URL: https://github.com/laravel-fans/laravel-docker
- Owner: laravel-fans
- License: mit
- Created: 2020-09-01T03:33:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T06:19:52.000Z (7 months ago)
- Last Synced: 2024-04-14T01:17:05.812Z (7 months ago)
- Topics: composer, docker, laravel
- Language: PHP
- Homepage: https://packagist.org/packages/laravel-fans/docker
- Size: 1.85 MB
- Stars: 32
- Watchers: 4
- Forks: 12
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Docker
[![codecov](https://codecov.io/gh/laravel-fans/laravel-docker/branch/main/graph/badge.svg)](https://codecov.io/gh/laravel-fans/laravel-docker)
[![Laravel 8](https://github.com/laravel-fans/laravel-docker/workflows/Laravel%208/badge.svg)](https://github.com/laravel-fans/laravel-docker/actions/workflows/laravel-8.yml)
[![Laravel 9](https://github.com/laravel-fans/laravel-docker/workflows/Laravel%209/badge.svg)](https://github.com/laravel-fans/laravel-docker/actions/workflows/laravel-9.yml)
[![Laravel 10](https://github.com/laravel-fans/laravel-docker/workflows/Laravel%2010/badge.svg)](https://github.com/laravel-fans/laravel-docker/actions/workflows/laravel-10.yml)Full Laravel production environment for Docker.
## install
Run in your Laravel project:
```shell
composer require --dev laravel-fans/docker
php artisan docker:publish
```## build
Then you will find `Dockerfile` in your project, so you can build:
```
docker build -t laravel-demo .
docker run -it laravel-demo
docker run -p 8000:80 -e "APP_ENV=local" -e "DB_CONNECTION=sqlite" \
-e "APP_KEY=base64:L+3avOYCfuq8nnDpHs74+5Et3sx27TssucHQIyqfpDY=" \
-it laravel-demo
```Feel free to change the `Dockerfile`.
## screenshots
![docker run laravel](https://user-images.githubusercontent.com/4971414/126929099-20fee54e-89e8-4d52-8c04-41eeab7ede2d.png)