Hamsa K
Editor
1 min read | 3 years ago

How to create LAMP stack using Docker Compose in Linux

LAMP Stack using Docker compose

Docker-compose is an useful utility for managing multi-container docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. For instance, you can have Apache running on one container, PHP on another and MySQL on a different one. These containers can all be networked together using Docker Compose allowing each of these services to interact with one another.

In this tutorial we will use one container for php and apace and for mysql database another container and another one for phpmyadmin.so services are listed below.

services:

php and apache

Mysql

phpmyadmin

 

 



Warning! This site uses cookies
By continuing to browse the site, you are agreeing to our use of cookies. Read our terms and privacy policy