jdsantos / laradocker
A Laravel package to seamlessly integrate Docker into your application
Requires
- php: >=8.2
- laravel/framework: ^11.9
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.17
- orchestra/testbench: ^9.3
README
jdsantos/laradocker
A Laravel package to seamlessly integrate Docker into your application. It provides an easy way to set up Docker for your Laravel project with minimal configuration.
Prerequisites
Ensure you have PHP (8.2+), Composer and Docker installed on your machine before proceeding. This package requires also that you run it inside a Laravel 11+ project:
🚀 Installation & Usage
Inside your Laravel project folder, simply run the following commands:
-
Require the Package: Install the
jdsantos/laradocker
package as a development dependency:composer require --dev jdsantos/laradocker
-
Install Laradocker: Launch the installer and follow the steps to include all necessary files inside your project folder:
php artisan laradocker:install
-
Try it out!: Now you can run your Laravel app using Docker like this:
docker run -p 80:80 -v laravel_storage:/opt/laravel/storage --rm -it $(docker build -q .)
It works also if you're using Podman
podman run -p 80:80 -v laravel_storage:/opt/laravel/storage --rm -it $(podman build -q .)
🛢 Databases support
Laradocker currently supports the following databases:
Contributing
Any contributions to this project are more than welcome. Feel free to reach us and we will gladly include any improvements or ideas that you may have. Please, fork this repository, make any changes and submit a Pull Request and we will get in touch!
Contributors
Support
The easiest way to seek support is by submiting an issue on this repo.