![]() As a result, we now need the following containers: For convenience, we will also add phpMyAdmin into the mix. Linux is the operating system Docker runs on, so that leaves us with Nginx, MySQL and PHP. Let's remind ourselves what the programs underlying the LEMP stack are: Identifying the necessary containersÄocker recommends running only one process per container, which roughly means that each container should be running a single piece of software. If you are a complete beginner, make sure you have some time ahead of you and grab yourself a hot drink: we're taking the scenic route. ![]() I assume no prior knowledge of Docker and I try not to leave any detail unexplained. Note that this post is quite dense because of the large number of notions being introduced. The latter is my recommended approach for Docker beginners, as the various concepts are more likely to stick if you write the code yourself. Once both requirements are covered, you can either get the final result from the repository and follow this tutorial, or start from scratch and compare your code to the repository's whenever you get stuck. The second thing you will need is a terminal. If you're on Windows, make sure to install Windows Subsystem for Linux (WSL 2), and to configure Docker Desktop to use it. The first thing to do is to head over to the Docker website and download and install Docker Desktop for Mac or PC, or head over here for installation instructions on various Linux distributions. I trust you've already read the introduction to this series and are now ready for some action. Commands summary and cleaning up your environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |