Git Product home page Git Product logo

docker-laravel's Introduction

docker-laravel

Docker compose laravel 2 tier architecture.

Steps to follow:

  1. docker-compose up -d (To run the docker containers in detached mode)
  2. docker-compose exec app composer install (Install packages)
  3. docker-compose exec app php artisan config:cache (To clear the php cache)
  4. docker-compose exec db bash (To create the user and give access to database)
    1. mysql -uroot -plaravelroot
    2. GRANT ALL ON laravel.* TO 'laraveluser'@'%' IDENTIFIED BY 'laravelroot';
    3. FLUSH PRIVILEGES;
    4. exit; (To exit from the mysql console)
    5. exit (To exit from the bash console)
  5. docker-compose exec app php artisan migrate (To migrate the table structure)
  6. Open the browser and type "http://localhost/" in the url.
  7. Type the task to Add.
  8. List task.

docker-laravel's People

Contributors

chaitanyamaili avatar

Watchers

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