Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsdecena/laradocker
Simplified dockerized laravel application
https://github.com/jsdecena/laradocker
docker docker-compose laravel laravel-framework laravel5 lemp lemp-stack nginx php php72
Last synced: about 1 month ago
JSON representation
Simplified dockerized laravel application
- Host: GitHub
- URL: https://github.com/jsdecena/laradocker
- Owner: jsdecena
- Created: 2019-01-09T03:33:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-11T04:10:39.000Z (almost 6 years ago)
- Last Synced: 2024-09-29T19:42:19.301Z (about 2 months ago)
- Topics: docker, docker-compose, laravel, laravel-framework, laravel5, lemp, lemp-stack, nginx, php, php72
- Language: PHP
- Size: 932 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simplified dockerized laravel application
## How to Install
- Download and install docker in your system. [Download here](https://www.docker.com/get-started)
- Install composer if you haven't here: [Composer](https://getcomposer.org/doc/00-intro.md)
- Fork this project and clone in your system. Current version of laravel is 5.7.x
- Run `composer install && cp .env.example .env`
- Move to the root folder and run `docker-compose up -d`
- Migrate your database and seed with:
```php
docker exec -it app php artisan migrate --seed
```- Open your browser and go to [http://localhost:81](http://localhost:81)
- Enjoy!
## FAQ
- Why port 81?
- Sometimes you want your backend and frontend separated. You can have your frontend runs in the default `:80` and the API to be in port `:81`
- Can we change this port?
- Yes. You can change the port in the webserver block of the `docker-compose.yml` file
- Is everything customizable?
- Yes. You can fiddle the `docker-compose.yml` file and make your own customization. Be sure you know what you are doing.
# Author
[Jeff Simons Decena](https://jsdecena.me)