Repository to save docker image with php-fpm and nginx server for php projects (Laravel etc).
- docker and docker-compose
- Clone the repository.
git clone https://github.com/matheusdearaujo/docker-php-nginx.git
- Change directory.
cd docker-php-nginx
- Paste your project in root.
- Change all texts "project" to your project name.
- 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