matheusdearaujo / docker-php-nginx

Repository to save docker image with php-fpm and nginx server for php projects (Laravel etc).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker PHP-fpm and NGINX

Repository to save docker image with php-fpm and nginx server for php projects (Laravel etc).

Requirements

Installation

  1. Clone the repository.
git clone https://github.com/matheusdearaujo/docker-php-nginx.git
  1. Change directory.
cd docker-php-nginx
  1. Paste your project in root.
  2. Change all texts "project" to your project name.

  1. Run docker.
  • With Makefile
make install
  • Manually
docker-compose up -d --build
docker exec <PROJECT_NAME> composer install
docker exec <PROJECT_NAME> php artisan key:generate
docker exec <PROJECT_NAME> php artisan storage:link
sudo chown -R 33:33 bootstrap/ storage/
docker exec <PROJECT_NAME> php artisan config:cache

About

Repository to save docker image with php-fpm and nginx server for php projects (Laravel etc).


Languages

Language:Makefile 56.5%Language:Dockerfile 43.5%