Skip to content

php-laravel-collection/laravel-nginx-mysql-docker

 
 

Repository files navigation

Latest Stable Version License

Description

This is a complete laravel environment using docker-compose with the following services: nginx, queue daemon, redis, mysql, scheduler and node js.

How to run this project

To run this project you need to have docker and docker-compose installed in your machine.

Take the following steps:

  • clone this repository by executing the following command: 'git clone https://github.com/jjuanrivvera99/laravel-nginx-mysql-docker'
  • change directory: 'cd laravel-nginx-mysql-docker'
  • run command: 'cp .env.example .env'
  • run command: 'docker-compose up -d --build'
  • run command: 'docker-compose exec php sh -c "composer update -d /var/www" '
  • run command: 'docker-compose exec php sh -c "php /var/www/artisan key:generate" '
  • run command: 'docker-compose exec php sh -c "chmod 775 -R /var/www/storage" '
  • run command: 'docker-compose restart nginx'

If your user UID is different from 1000 make sure HOST_UID env var it's correctly setup.

License

The Laravel framework is open-source software licensed under the MIT license.

About

Complete laravel environment over Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 94.2%
  • Blade 3.2%
  • Shell 1.9%
  • Dockerfile 0.7%