Skip to content

This is a template that I use to run Laravel using Docker

Notifications You must be signed in to change notification settings

ilham-s-saksena/laradock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel With Docker

About

Running the Laravel App with Docker

Requirements

  • Docker

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/ilham-s-saksena/laradock.git
  2. Change directory to laradock:

    cd laradock
  3. Run the initialization script

    ./install.sh 
  4. Start the docker compose service

    docker compose up --build -d
  5. Open The Browser

    Go To localhost:8088

Development

if you want to run the migration or 'php artisan command', you only can run the command in the container,

Docker Compose

To access each containers, you should have knowledge about interacting with docker and docker compose. E.g if you want to interact with php inside the Laravel container, you may want to run the command like:

docker exec laradock-task-php-1 php artisan migrate

About

This is a template that I use to run Laravel using Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages