This pull request adds Docker setup instructions and an automation script to the Laravel Gymie project. The following changes have been made:
README.md:
Added a new section with detailed instructions on how to set up and run the project using Docker.
Included a subsection outlining the particularities for Docker, specifically mentioning the use of Nginx as a reverse proxy due to compatibility issues with the PHP version.
Provided instructions for using the setup script setup_gymie_docker.sh to automate the Docker setup process.
Setup Script:
Added setup_gymie_docker.sh, a script to automate the Docker setup process. This script builds and starts the Docker containers, waits for MySQL to be ready, sets up the necessary directories and permissions, installs dependencies, sets up environment variables, generates the application key, runs migrations, and sets permissions inside the container.
Detailed Changes
README.md
Added Docker Method section under Installation:
Step-by-step instructions to set up the project using Docker.
Specifics on using Nginx as a reverse proxy due to PHP version compatibility issues.
Instructions for using the setup_gymie_docker.sh script for automated setup.
setup_gymie_docker.sh
Automates the following steps:
Building and starting Docker containers.
Waiting for MySQL to be ready.
Setting up necessary directories and permissions.
Installing composer dependencies.
Setting up environment variables.
Generating application key.
Running migrations and seeding the database.
Modifying php-fpm listen directive.
Restarting php-fpm.
Adding a cron job for scheduled tasks.
Testing
Tested the Docker setup and script on a local environment to ensure all services start correctly and the application is accessible through Nginx.
Notes
These additions aim to simplify the setup process for new users and contributors by providing a standardized Docker environment.
Thank you for considering this pull request. Please let me know if there are any changes or additional improvements required.
Summary
This pull request adds Docker setup instructions and an automation script to the Laravel Gymie project. The following changes have been made:
README.md:
setup_gymie_docker.sh
to automate the Docker setup process.Setup Script:
setup_gymie_docker.sh
, a script to automate the Docker setup process. This script builds and starts the Docker containers, waits for MySQL to be ready, sets up the necessary directories and permissions, installs dependencies, sets up environment variables, generates the application key, runs migrations, and sets permissions inside the container.Detailed Changes
README.md
setup_gymie_docker.sh
script for automated setup.setup_gymie_docker.sh
Testing
Tested the Docker setup and script on a local environment to ensure all services start correctly and the application is accessible through Nginx.
Notes
These additions aim to simplify the setup process for new users and contributors by providing a standardized Docker environment.
Thank you for considering this pull request. Please let me know if there are any changes or additional improvements required.