Git Product home page Git Product logo

laravel-starter's Introduction

Laravel Docker

This Laravel starter template is intended to be used for new projects that utilize Docker for local development and/or production.

  • Pre-configured docker-compose.yml that uses nginx, php-fpm and MySQL.
  • gitlab branch for a CI pipeline that builds, tests and pushes containers to the registry. Add a deploy step to meet your needs and you're done
  • travis-ci branch includes examples using Travis-CI for building docker containers, running tests against them and pushing them to Dockerhub.

Take the contents of this repository and drop these files into the root of your project. Then run the following commands:

  • docker-compose up - Brings the containers online. The fist time through this will build your containers
  • docker-compose exec web php artisan migrate --seed - Runs the migrations/seeders from within the docker container
  • Access your site at http://localhost

GitLab

No configuration required.

Travis-CI & Dockerhub Setup

Create a repository and replace bkuhl/laravel-starter with your project's repository information in .travis-ci.yml and docker-compose.yml.

Travis-CI Setup

Configure the following environment variables:

  • DOCKER_USERNAME
  • DOCKER_PASSWORD

This user needs to have permission to write to the DockerHub repository so that it can push images.

Development requirements

laravel-starter's People

Contributors

bkuhl avatar jlaswell avatar millidavids avatar mh3720 avatar

Watchers

Bhawesh Kumar Singh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.