trinsyca / docker
Docker Setup [frontend, backend, fullstack] for Laravel
Requires
- php: >=7.0
- trinsyca/trinsy: v1.1.1
README
Welcome to the Trinsyca Docker project
Please choose your preferred language
What is this project for?
- This project allows you to easily set up Docker configurations for your PHP projects.
- You can integrate frontend, backend, or full-stack setups with just a few commands!
Installation 🚀
To integrate this project into your own, simply run the following command:
composer require trinsyca/docker
This will add the necessary Docker files and configurations to your project.
After running the installation commands, the project will automatically execute the command composer require trinsyca/trinsy
.
During this process, you will be prompted with the following question in the terminal:
Do you trust "trinsyca/trinsy" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?]
- Please type
y
to allow and proceed.
This will install the trinsyca/trinsy
plugin, enabling you to use the Docker setup commands
Available Commands ⚙️
Once installed, use the following Composer commands to set up the Docker configurations for your project:
For Frontend Docker Setup:
-
composer trinsy:docker-frontend
For Backend Docker Setup:
-
composer trinsy:docker-backend
For Fullstack Docker Setup (Frontend & Backend):
-
composer trinsy:docker-fullstack
To Remove Docker Files:
-
composer trinsy:docker-remove
How It Works 🔧
- Frontend: Adds Docker configuration for frontend development.
- Backend: Adds Docker configuration for backend services, including database and API setup.
- Fullstack: Combines both frontend and backend Docker setups.
- Remove: Safely removes the Docker-related files from your project.
Note 📌
Before removing Docker files, you will be prompted with a confirmation to ensure you want to proceed.