The LAMP stack
LAMP is the software stack on which probably the majority of websites run. Linux represents the foundation of the stack, and the traditional implementation includes Apache as the web server, the MySQL database, and PHP as the server-side programming language. There are, however, many possible variations: MariaDB, for example, is often used in place of MySQL, of which it is a fork, and other programming languages, as Python or Perl can be used instead of PHP. In this article we will see how to implement a basic LAMP stack using docker and the docker-compose utility.
In this tutorial you will learn:
- How to install docker and docker-compose on Ubuntu 20.04
- How to define services and volumes using docker-compose
- How to map host ports to container ports in the docker-compose configuration file
- How to use bind mounts and named volumes
- How to build a project with docker-compose