Dockerized version of Laravel Homestead

Overview

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!

Comments
  • No 'homestead' MySQL user?

    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.

    bug enhancement 
    opened by waldemarfm 15
  • Mysql shouldn't be in the web/php container

    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.

    question 
    opened by AleksanderKoko 4
  • [Question] Many projects

    [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

    question 
    opened by digitalit 4
  • /var/www/html/app: 80:80: command not found

    /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

    bug 
    opened by semsphy 3
  • Where is

    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/

    question 
    opened by mikeerickson 2
  • development/production ?

    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?

    question 
    opened by hopewise 2
  • How do I modify my php.ini ?

    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.

    opened by MAJA-Lin 1
  • web root is wrong

    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

    bug 
    opened by ibourgeois 1
  • Parse error

    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

    opened by Hsu-Cheng-Wei 0
  • docker run ERROR

    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'.

    opened by echobar 0
  • can't get latest view

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

    opened by Falld0wn18 0
Owner
LaraEdit
LaraEdit
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

Fat-Free Framework Factory 9 Sep 20, 2022
Dockerized PHP development stack: Nginx, MySQL, MongoDB, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch and RabbitMQ

PHP Dockerized Dockerized PHP development stack: Nginx, MySQL, MongoDB, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch and RabbitMQ PHP Dockerized giv

Kasper Isager Dalsgarð 1.1k Dec 30, 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

Matt 5 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

Carlos Priego 1.2k Dec 31, 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

Protone Media 102 Dec 16, 2022
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

Steve Azzopardi 14 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!

Lucas Nepomuceno 3 Oct 8, 2022
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

devoption.io 1 Jan 5, 2022
ServD - a Docker PHP development environment heavily inspired by Laravel Valet and Laradock

ServD ServD is a Docker PHP development environment heavily inspired by Laravel Valet and Laradock, it supports multiple projects within a working dir

Matt Clinton 2 May 13, 2022
Laravel Homestead

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

The Laravel Framework 3.8k Jan 1, 2023
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

The Laravel Framework 1k Dec 22, 2022
This a php environment for developers. based on Vagrant & CentOS & laravel/homestead

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

JasonChang 52 Sep 30, 2022
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

Harsh Vakharia 83 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

Legendary 4 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

Cocoa Web Studio 10 Apr 23, 2022
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

Fat-Free Framework Factory 9 Sep 20, 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

Moein Fatehi 15 Dec 23, 2022
Dockerized PHP development stack: Nginx, MySQL, MongoDB, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch and RabbitMQ

PHP Dockerized Dockerized PHP development stack: Nginx, MySQL, MongoDB, PHP-FPM, HHVM, Memcached, Redis, Elasticsearch and RabbitMQ PHP Dockerized giv

Kasper Isager Dalsgarð 1.1k Dec 30, 2022
Fully covered with tests, documented by Swagger and dockerized API based on enterprise-level framework with optional queue worker.

symfony-api Fully covered with tests, documented by Swagger and dockerized API based on enterprise-level framework with optional queue worker. ⚙️ Depl

Oleksii Velychko 1 Nov 20, 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

Christian Scheb 389 Nov 15, 2022