Dockerized version of Laravel Homestead

Last update: May 22, 2022

laraedit-docker GitHub issues GitHub license GitHub forks GitHub stars

Dockerized version of Laravel Homestead

Documentation

For now you can check out the wiki for details on using the container. Once the container is stable, I will add more instructions here in the readme.

Build Information

You can find the latest build details on the Docker Hub

What works

  • Nginx 1.8.1
  • PHP 7.0
  • SQLite
  • MySQL 5.7
  • Redis
  • NodeJS
  • PostgreSQL
  • Beanstalkd
  • Blackfire
  • Bower
  • Gulp
  • Composer
  • Laravel Envoy
  • Laravel Installer
  • Lumen Installer

How to use the container

Kitematic (the easy way)

  1. Search for LaraEdit
  2. Create LaraEdit container
  3. Point the /var/www/html/app volume to your local application directory.

CLI (the other easy way)

  1. Pull in the image
  docker pull laraedit/laraedit
  1. Run the container
  docker run -p 80:80 -v /path/to/your/app:/var/www/html/app laraedit/laraedit

If you want to try the latest unstable release, replace laraedit/laraedit with laraedit/laraedit:dev

MySQL Details

  • MySQL Username = homestead
  • MySQL Password = secret
  • MySQL Database = homestead

You are free to create more databases and/or users, but these are available to you as soon as you run the container!

GitHub

https://github.com/laraedit/laraedit-docker
Comments
  • 1. No 'homestead' MySQL user?

    @iBourgeois any particular reason why the lines to create the homestead user and database for MySQL are commented out? Without this we can't find any way to enter values in Laravel's config that will successfully connect the app to the database.

    https://github.com/laraedit/laraedit-docker/blob/master/src/scripts/mysql.sh#L18-L23

    Thanks.

    Reviewed by waldemarfm at 2016-03-04 01:20
  • 2. Mysql shouldn't be in the web/php container

    I dont see the point of dockerizing Homestead in Docker if the nginx, php, mysql and everything from Homestead is on the same container. The whole point of docker is to have them in different containers.

    Reviewed by AleksanderKoko at 2016-03-07 09:22
  • 3. [Question] Many projects

    Hi,

    Great docker project you got here.

    I use Vagrant with Homestead on and i ad new domains/hosts/projects in the .yaml file and then just provision Vagrant.

    How can i achieve this in your project?

    Do i have to run an separate container for each Laravel project?

    Thank you /Peter

    Reviewed by digitalit at 2016-03-06 15:40
  • 4. /var/www/html/app: 80:80: command not found

    I ran command: docker run laraedit/laraedit -p 80:80 ~/test:/var/www/html/app and I got error /var/www/html/app: 80:80: command not found

    Any idea? Thanks

    Reviewed by semsphy at 2016-03-04 18:46
  • 5. Where is "first" video

    Hey There

    During this video (see link below), you eluded to a previous video? I am looking to get started using Docker (first time user) Do you have a "getting started 101" type video?

    https://laravel-news.com/2016/03/dockerized-version-of-laravel-homestead/

    Reviewed by mikeerickson at 2016-06-15 19:43
  • 6. development/production ?

    One thing that is very important, as for the nginx server, it should not cache any file of any type when in development, otherwise, php artisan serve would be the way to go while development.

    Is the files caching turned off for nginx?

    Reviewed by hopewise at 2016-03-07 13:11
  • 7. How do I modify my php.ini ?

    Hello, I got some trouble with modifying my own php.in file. I edited /etc/php/7.0/fpm/php.ini, and try to check it on phpinfo(), it showed that the changes i've made didn't work. I also tried volume, something like -v ~/wamp64/www/php.ini:/etc/php/7.0/fpm/php.ini and I checked it in the container, it used the php.ini on my host. But as I tried phpinfo(), the changes were not applied again. I don't know what's going on there.

    sos

    sos_pt2

    PS. I run Kitematic and docker toolbox on Windows 10 Home edition.

    Reviewed by MAJA-Lin at 2016-09-10 07:47
  • 8. web root is wrong

    the default web root is /var/www/html the dockerfile creates a volume at /usr/share/nginx/html/$APP_NAME

    the correct volume should be /var/www/html/$APP_NAME

    Reviewed by ibourgeois at 2016-02-05 10:55
  • 9. Parse error

    when I type 'sudo docker run -d --name laravel -p 3307:3306 -p 8082:80 -v ~/mylaravel:/var/www/html/app laraedit/laraedit',then open chrome and type MyIP:8082, I get a error like bellow Parse error: syntax error, unexpected '=' in /var/www/html/app/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 388

    Reviewed by Hsu-Cheng-Wei at 2018-12-11 14:12
  • 10. docker run ERROR

    mkdir -p /home/docker/lar/www/odoo docker run -p 8300:80 -v /home/docker/lar/www/odoo:/var/www/html/app laraedit/laraedit ERROR MSG: docker: Error response from daemon: mkdir /var/lib/docker/overlay2/d46cc7ff2c9ecc251afdd7ed47ece33391c164d148bbe6282cc74bbbf7e66bc2-init/merged/dev/shm: invalid argument. See 'docker run --help'.

    Reviewed by echobar at 2018-10-17 09:18
  • 11. can't get latest view

    When I try to modify the tpl file located in the resources / view directory of the project, I found that I need to refresh the page twice to get the modified result, and only need to refresh once in the vagrant. Is this because the cache, or the configuration is wrong? I first modified the 'sendfile' in the nginx.conf, this only applies to img / css / js, after I modified php.ini opcache.revalidate_freq and opcache.validate_timestamps, but no working~

    Waiting for reply. :)

    Reviewed by Falld0wn18 at 2017-08-30 06:43
This is a dockerized environment for testing and developing things on the fatfree-core.
This is a dockerized environment for testing and developing things on the fatfree-core.

F3 development bench This is a dockerized environment for testing and developing things on the fatfree-core. It uses Docker to spin up multiple contai

Mar 29, 2022
Demo of how you can run your Laravel app with Docker Compose. Look at docker-compose.yml and the docker folder. The rest is just a clean Laravel + Horizon install.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Oct 22, 2021
A fork of Laravel Valet to work in Linux.

Introduction Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites pub

May 23, 2022
A collection of Laravel goodies.

Laravel Mixins Launcher ?? Hey! We've built a Docker-based deployment tool to launch apps and sites fully containerized. You can find all features and

May 6, 2022
Docker Containers for simple Laravel development.
Docker Containers for simple Laravel development.

Docker containers of Laravel development. Docker Containers for simple Laravel development. Prerequisites This package only works for Linux users righ

May 19, 2022
A package that allows you to generate simple and fast Docker configurations for your Laravel application!

A package that allows you to generate simple and fast Docker configurations for your Laravel application!

Dec 23, 2021
Docker-based workflow management system for Laravel

DevOption Workflows Workflows is a Docker-based workflow management system for Laravel applications. Installation You can install the package via comp

Jan 5, 2022
Laravel Homestead

Introduction Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to

May 20, 2022
Laravel Homestead Build Scripts

Laravel Settler The scripts that build the Laravel Homestead development environment. End result can be found at https://app.vagrantup.com/laravel/box

May 17, 2022
This a php environment for developers. based on Vagrant & CentOS & laravel/homestead

Centstead 这是一个 PHP 调试环境 , 基于 centos,laravel/homestead. 介绍   基于开发的实际需求,PHP开发者通常需要一个贴近生产环境,又易于维护的测试与开发环境.以往的选择: xampp, wamp, phpstudy… 集成环境,启动方便,占用小,但是需

Sep 9, 2019
Laravel 5 with Dockerized Gulp, PHP-FPM, MySQL and nginx using docker-compose

docker-laravel Laravel 5 with Dockerized PHP-FPM, MySQL and nginx using docker-compose Usage Get Composer docker-compose run --rm phpnginx curl -O htt

Feb 8, 2022
Dockerized Laravel project with authentication and car brand crud functionalities.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Oct 16, 2021
A dockerized magento 2 community environment ready for development or production.

Painless Magento 2 & 1 A dockerized magento 2 community environment ready for development or production. It supports magento 1.9.x for development Ins

Apr 23, 2022
This is a dockerized environment for testing and developing things on the fatfree-core.
This is a dockerized environment for testing and developing things on the fatfree-core.

F3 development bench This is a dockerized environment for testing and developing things on the fatfree-core. It uses Docker to spin up multiple contai

Mar 29, 2022
A dockerized PHP application containing some file upload vulnerability challenges (scenarios)

File Upload Vulnerability Scenarios (Challenges) This repository is a dockerized PHP application containing some file upload vulnerability challenges

May 9, 2022
[OUTDATED] Two-factor authentication for Symfony applications 🔐 (bunde version ≤ 4). Please use version 5 from https://github.com/scheb/2fa.

scheb/two-factor-bundle ⚠ Outdated version. Please use versions ≥ 5 from scheb/2fa. This bundle provides two-factor authentication for your Symfony ap

May 19, 2022
The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3
The Current US Version of PHP-Nuke Evolution Xtreme v3.0.1b-beta often known as Nuke-Evolution Xtreme. This is a hardened version of PHP-Nuke and is secure and safe. We are currently porting Xtreme over to PHP 8.0.3

2021 Nightly Builds Repository PHP-Nuke Evolution Xtreme Developers TheGhost - Ernest Allen Buffington (Lead Developer) SeaBeast08 - Sebastian Scott B

Feb 12, 2022
This command will guide you through upgrade your composer.json config rom version 1 to version 2.

Upgrade composer.json This command will guide you through upgrade your composer.json config rom version 1 to version 2. How to use: $ cd YOUR_PROJECT_

May 18, 2022
Chargebee API PHP Client (for API version 2 and Product Catalog version 2.0)

chargebee-php-sdk Overview This package provides an API client for Chargebee subscription management services. It connects to Chargebee REST APIs for

Mar 8, 2022
Version is a library that helps with managing the version number of Git-hosted PHP projects

Version Version is a library that helps with managing the version number of Git-hosted PHP projects. Installation You can add this library as a local,

May 27, 2022