Skip to content

GuillaumeIsabelleX/docker-compose-lamp

 
 

Repository files navigation

INSTALL-HOST


LAMP stack built with Docker Compose

Landing Page

This is a basic LAMP stack environment built using Docker Compose. It consists following:

  • PHP
  • Apache
  • MySQL
  • phpMyAdmin

As of now, we have 3 different branches for different PHP versions. Use appropriate branch as per your php version need:

Installation

Clone this repository on your local computer and checkout the appropriate branch e.g. 7.1.x. Run the docker-compose up -d.

git clone https://github.com/GuillaumeIsabelleX/docker-compose-lamp.git
cd docker-compose-lamp/
git fetch --all

docker-compose up -d

Your LAMP stack is now ready!! You can access it via http://localhost.

Configuration and Usage

Please read from appropriate version branch.

Composing

Open a terminal and cd to the folder in which docker-compose.yml is saved and run:

docker-compose up

Usage

Starting containers

You can start the containers with the up command in daemon mode (by adding -d as an argument) or by using the start command:

docker-compose start

Stopping containers

docker-compose stop

Removing containers

To stop and remove all the containers use thedown command:

docker-compose down

Use -v if you need to remove the database volume which is used to persist the database:

docker-compose down -v

About

@stcgoal 1902 To create an Infrastructure - I love the sample - A basic LAMP stack environment built using Docker Compose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 66.2%
  • Dockerfile 27.5%
  • PHP 3.8%
  • Hack 2.5%