Skip to content
Basic starter for using Docker for a local laravel environment
PHP HTML JavaScript Vue
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.env.example
.gitattributes
.gitignore
app.docker
artisan
composer.json
composer.lock
docker-compose.yml
gulpfile.js
package.json
phpunit.xml
readme.md
server.php
vhost.conf
web.docker

readme.md

Laravel applications with Docker

This repo contains a Laravel installation setup to use Docker to create a development environment. This repo can be used as a starting point for developing Laravel apps with Docker.

You can check this medium post out for more information.

This setup contains;

  • PHP-FPM (PHP 7)
  • Nginx web server
  • MySQL database

Run

Make sure your have composer and Docker installed

Clone the repo

git clone https://github.com/mrfoh/docker-laravel.git

Change directory

cd docker-laravel

Install dependencies

composer install

Build and run the Docker containers

docker-compose up -d

This builds the containers and runs them in the background, while this

docker-compose up

builds the containers to outputs their logs to the console. You should be able to visit your app at http://localhost:8080

To stop the containers run docker-compose kill, and to remove them run docker-compose rm

You can’t perform that action at this time.