Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.01 KB

README.md

File metadata and controls

41 lines (24 loc) · 1.01 KB

LAMP Server Docker Compose

Introduction

This repository can be used to host LAMP (Linux, Apache, Mariadb, PHP) server using docker compose. The docker images used for building LAMP stack are:-

  1. php:7.4-apache
  2. mariadb:10.5.1-bionic
  3. phpmyadmin/phpmyadmin

Instructions

  1. The default configuration is saved as sample_env. Copy contents from sample_env to .env.

    $ cp sample_env .env

  2. Make necessary changes to .env file.

  3. Build docker-compose image using the following command.

    $ docker-compose build --no-cache

  4. Run docker-compose using the following command.

    $ docker-compose up -d

  5. To shut down docker-compose container, using the following command.

    $ docker-compose down

Folder structure

  1. bin: Contains Dockerfile for each docker image.
  2. config: Contains configurations for apache2, php and vhosts.
  3. data: Contains data generated by docker containers.
  4. logs: Contains logs from docker containers.

Contributors

  1. Sashwat K sashwat0001@gmail.com