[Docker] How to install an Nginx, MySQL, PHP (LEMP) stack in 60 seconds (2020)

preview_player
Показать описание
ℹ In this recording I demonstrate how YOU can install an Nginx, MySQL, PHP (LEMP) stack in 60 seconds on any computer and the only pre-requisites are that you have git and Docker.

📺 This is a shortcut that will take you to the same end result as I achieved in this video:

But not everyone wants to work through a 22 minute tutorial...they just want the end result...and I get that, because I've quite often been that guy.

So in this recording I show you how to clone the repo and then spin everything up with a simple docker-compose command. Then I just add an index file to the public folder, check my browser, and BOOM...a living LEMP stack in 60 seconds.

💻Source code here:

📺 If you want to take things one step further, then you can follow this tutorial:

..then add Symfony, connect to a DB admin tool, pull in Webpack Encore, and compile some assets. If that sounds like your kinda thing...you'll LOVE IT!

👇Follow me on Social Media:

💕Show support:
Рекомендации по теме
Комментарии
Автор

Thanks ! Your videos are awesome
you perfectly convey the essence in simple words.

vladyslavsvizinskyi
Автор

Great tutorials Gary! I bookmarked this video for every single Symfony installation I now do. Symfony seems to have changed slightly, I documented my troubleshooting attempts.

I ran: $ docker compose up -d --build

I saw: => ERROR [6/6] RUN mv /root/.symfony/bin/symfony /usr/local/bin/symfony
#0 0.382 mv: cannot stat '/root/.symfony/bin/symfony': No such file or directory

I modified file: ./php/Dockerfile ln15
RUN mv /root/.symfony5/bin/symfony /usr/local/bin/symfony

Ran it again, and it worked. I believe Symfony may have changed upstream, after the creation of this video.

chrisn
Автор

ty dude I won a lot of time with this ty

timothel
Автор

Thanks for video, I don't know why I am afraid of docker. Hhhh, thanks anyway.

webdev
Автор

the localhost 8080 is not working. I have folder Projektname/ than in there app and nginx and so on. Exactly made the stuff from your video. And by the way awesome video short and good. not like all these othe rpeople with 20 min videos. but it says File not found. so something dont seem to match with my structure it seems.

WolfszeitYT
Автор

hey guy! i have latest docker installed which is running a container for azurahost, all is well but when i run your script to install everything after i have downloaded and moved to the created folder i get this error

ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

any ideas?

Dirtbreaks