How to create a docker based LAMP stack using docker on Ubuntu 20.04

How to create a docker based LAMP stack using docker on Ubuntu 20.04

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
How to create a docker based LAMP stack using docker on Ubuntu 20.04

How to create a docker based LAMP stack using docker on Ubuntu 20.04

Read more

docker-compose on Ubuntu 20.04 Focal Fossa Linux

How to install docker-compose on Ubuntu 20.04 Focal Fossa Linux

Compose is a feature for setting up and running multi-container Docker applications. With a single command, you can create and start all the services from your configuration. To learn more about Compose see How To Launch Containers With Docker Compose. The objective of this short guide is to install docker-compose on Ubuntu 20.04 Focal Fossa Linux Server/Desktop.

In this tutorial you will learn:

  • How to install docker-compose from Ubuntu repository
  • How to install the latest docker-compose from the official git repository

Read more