Coder Social home page Coder Social logo

docker-compose-lemp-stack's Introduction

Docker Compose LEMP Stack

This repository contains a little docker-compose configuration to start a LEMP (Linux, Nginx, MariaDB, PHP) stack.

Details

The following versions are used.

  • PHP 7.2 (FPM) - With MySQLi driver optionally (Uncomment line from php.Dockerfile)
  • Nginx 1.13.6
  • MariaDB 10.3.9

Configuration

The Nginx configuration can be found in config/nginx/.

You can also set the following environment variables, for example in the included .env file:

Key Description
APP_NAME The name used when creating a container.
MYSQL_ROOT_PASSWORD The MySQL root password used when creating the container.

Usage

To use it, simply follow the following steps:

Clone this repository.

Clone this repository with the following command: git clone https://github.com/stevenliebregt/docker-compose-lemp-stack.git.

Start the server.

Start the server using the following command inside the directory you just cloned: docker-compose up.

Entering the containers

You can use the following command to enter a container:

Where {CONTAINER_NAME} is one of:

docker exec -ti {CONTAINER_NAME} /bin/bash

  • {APP_NAME}-php
  • {APP_NAME}-nginx
  • {APP_NAME}-mariadb

docker-compose-lemp-stack's People

Contributors

manuelbcd avatar stevenliebregt avatar shmidtelson 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.