Setting up Docker for Laravel and MySQL application

Wai Hein
2 min readNov 28, 2020

This article will briefly show you how to use Docker for Laravel and MySQL application.

Create a .docker folder right inside the project’s root folder.

Then create a Dockerfile file with the following content.

FROM php:7.4.1-apacheUSER rootWORKDIR /var/www/htmlRUN apt-get update && apt-get install -y \libpng-dev \zlib1g-dev \

--

--

Wai Hein

8 x AWS Certified Full-stack | DevOps | Serverless Engineer with over a decade of experience