GithubHelp home page GithubHelp logo

lamp-stack-docker-compose's Introduction

LAMP Stack Docker Compose

Introduction

Launch LAMP services by docker-compose. This environment consists of 3 containers:

  1. PHP 5.5.29 + APACHE 2.4.10
  2. MYSQL 5.6.46
  3. PHPMYADMIN 5.0.0 (image: php 7.4.1; Apache/2.4.38 (Debian))

Purposes of development and test. Not recommended to use in production environment.

User Guide

Project Structure:

$ tree
.
├── db-data
├── docker-compose.yml
├── php5apache
│   └── Dockerfile
└── www
    ├── connDB.php
    └── index.php
  • db-data: persistent MySQL DB Data will be here.
  • www: place your php web code here.

Usage

  1. git clone this repository.

  2. Copy your php web code into directory www.

  3. IMPORTANT!! Modify MySQL Root Password in docker-compose.yml:

MYSQL_ROOT_PASSWORD: root1234
  1. (Optional) If you have existing mysql data(/var/lib/mysql/*), you can copy them to overwrite db-data/*.

  2. Launch LAMP services:

$ cd lamp-stack-docker-compose
$ docker-compose up -d
  1. Test:

  2. If you want to terminal LAMP services but keep data:

$ docker-compose down
  • Container instances will be removed.
  • MySQL data will persist in folder db-data.

lamp-stack-docker-compose's People

Contributors

onejar99 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.