Want to run Laravel with Docker on Windows — the right way? In this full beginner setup guide, I’ll walk you through everything you need to install and configure:
✔️ Docker
✔️ WSL (Windows Subsystem for Linux)
✔️ Ubuntu
✔️ Laravel dependencies (PHP, Composer, MySQL, etc.)
This tutorial is perfect if you're on Windows and want to build Laravel projects using Docker and WSL, just like the pros — without running into common setup issues.
📌 Terminal commands:
1: sudo apt update && sudo apt upgrade -y
2: sudo apt install php8.3-cli php8.3-common php8.3-mbstring php8.3-xml php8.3-bcmath php8.3-curl php8.3-mysql php8.3-zip php8.3-readline php8.3-gd php8.3-pgsql unzip curl git composer -y
📌 What you’ll learn:
Installing WSL and Ubuntu on Windows
Installing and configuring Docker Desktop
Setting up PHP, Composer, and Laravel
Running Laravel inside Docker with Sail
Solving common Windows/WSL/Docker errors
📌 Timestamps:
00:00 Intro
05:03 Installing WSL & Ubuntu
09:33 Installing Docker Desktop on Windows
17:31 Laravel dependencies inside WSL
21:08 Setting up Laravel Sail
23:10 Open the project in Visual Studio Code
25:01 Open your project folder
25:47 Setting up our database & .env file
26:37 Running Laravel with Docker
28:44 Viewing our database inside DBeaver
34:56 How to view your website in the browser
36:27 How to start everything up again, after closing it down
💬 If you're stuck at any point, drop your questions in the comments!
🔔 Subscribe for more Laravel + Docker tutorials: / @dani_krossing
#Laravel #Docker #WSL
➤ GET ACCESS TO MY LESSON MATERIAL! 👇
First of all, thank you for all the support you have given me!
I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
I am now using Patreon and YouTube Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful :)
Get access to my lesson material below!
Memberships: / @dani_krossing
Patreon: / mmtuts