jdsantos/laradocker

A Laravel package to seamlessly integrate Docker into your application
1,563 6
Install
composer require jdsantos/laradocker
Latest Version:v2.0.1
PHP:>=8.3
License:MIT
Last Updated:Sep 26, 2025
Links: GitHub  ·  Packagist
Maintainer: jdsantos

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.3+), Composer and Docker installed on your machine before proceeding. This package requires also that you run it inside a Laravel 12+ project:

🚀 Installation & Usage

Inside your Laravel project folder, simply run the following commands:

  1. Require the Package: Install the jdsantos/laradocker package as a development dependency:

    composer require --dev jdsantos/laradocker

  2. Install Laradocker: Launch the installer and follow the steps to include all necessary files inside your project folder:

    php artisan laradocker:install

  3. 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:

Database Version Status
SQLite 3.26.0+ ✅
Mysql 5.7+ ✅
MariaDB 10.3+ ✅
PostgreSQL 10.0+ ✅
SQLServer 2017+ ✅

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

Jorge Santos Walisson Aguirra
jdsantos walissonaguirra
github.com/jdsantos github.com/walissonaguirra

Support

The easiest way to seek support is by submiting an issue on this repo.


Related Packages

nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660
nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2,591,324 259
rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

134,750 76
nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero ar...

61,080 164
nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

2,546,755 67

Version History

Version Released PHP Laravel License
v2.0.1 >=8.3 ^12.0 MIT
v2.0.0 >=8.3 ^12.0 MIT
v1.1.0 >=8.2 ^11.9 MIT
v1.0.8 >=8.2 ^11.9 MIT
v1.0.7 >=8.2 ^11.9 MIT