techwithus / LAMP-Server-Docker-Compose

LAMP (Linux - Apache - Mariadb - PHP) Server using docker compose.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

LAMP (Linux - Apache - Mariadb - PHP) Server using docker compose.

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%