Running the Laravel App with Docker
- Docker
-
Clone the repository to your local machine:
git clone https://github.com/ilham-s-saksena/laradock.git
-
Change directory to laradock:
cd laradock
-
Run the initialization script
./install.sh
-
Start the docker compose service
docker compose up --build -d
-
Open The Browser
Go To localhost:8088
if you want to run the migration or 'php artisan command', you only can run the command in the container,
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