Docker for Beginners: Setting up Apache with PHP, MySQL, and PHPMyAdmin

preview_player
Показать описание
In this Docker tutorial, we will walk through setting up a local development environment with Docker, creating a complete stack with Apache, PHP, MySQL, and PHPMyAdmin. This guide is perfect for beginners looking to understand the basics of Docker and how it can be leveraged to create a scalable and efficient development workflow.

Chapters:
00:00 - Create the Project Directory
00:12 - Create a Docker Compose File
01:13 - Setup the Web Container (Apache + PHP)
02:10 - Setup the Database Container (MySQL)
04:05 - Run the Docker Containers
04:41 - Create a PHP File to Test the Web Container
05:28 - Enter the Database Container
05:39 - Login Into MySQL
06:08 - Create a PHP File to Test the Database Connection
08:06 - Create a Dockerfile for the Web Container to Include the MySQLi Extension
09:22 - Setup the PHPMyAdmin Container

By the end of this tutorial, you'll have a functioning local development environment running inside Docker containers and a solid understanding of how to configure and manage Dockerized applications. Let's get dockerized!

#docker #dockertutorial #dockercompose #apache #php #mysql #phpmyadmin #webdevelopment
Рекомендации по теме
Комментарии
Автор

finally something that works on my machine. ty

boleborcha
Автор

I love you guy! nice work! give more tutorial bruh

kordianniemczyk
Автор

Awesome, thank you, keep doing great job!!

brunofrs
Автор

Perfect! Thanx :) Just one question though. Don't you have to setup user group and ownership anymore eg. www-data:1000 in dockerfile?

sharakpl