Skip to content

barcar/docker-nginx-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose LEMP Stack

This repository contains a little docker-compose configuration to start a LEMP (Linux, Nginx, 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

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.

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

About

Docker Compose Linux Nginx PHP7.2 Stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 73.7%
  • Dockerfile 25.1%
  • Shell 1.2%