Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (25 sloc) 871 Bytes

Dockerized Laravel App

A sample dockerized laravel app.

Usage

Make sure you have docker and docker compose on your machine.

How To Install and Use Docker on Ubuntu

How To Install Docker Compose on Ubuntu

Clone the project

cd into the project directory

Run docker-compose up -d

This will build three docker container

app, db, webserver

Generate app key

docker-compose exec app php artisan key:generate

Cache configurations

docker-compose exec app php artisan config:cache

Enter the database and login to mysql

docker-compose exec db bash

mysql -u root -p

make use of the password defined inside the docker-compose.yml file.

You can’t perform that action at this time.