Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenliebregt/docker-compose-lemp-stack
Docker Compose Linux Nginx MariaDB PHP7.2 Stack
https://github.com/stevenliebregt/docker-compose-lemp-stack
docker docker-compose lemp lemp-stack mariadb nginx php72
Last synced: about 1 month ago
JSON representation
Docker Compose Linux Nginx MariaDB PHP7.2 Stack
- Host: GitHub
- URL: https://github.com/stevenliebregt/docker-compose-lemp-stack
- Owner: stevenliebregt
- Created: 2018-09-04T08:13:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-04T06:52:17.000Z (over 2 years ago)
- Last Synced: 2024-09-29T19:42:06.460Z (about 2 months ago)
- Topics: docker, docker-compose, lemp, lemp-stack, mariadb, nginx, php72
- Language: PHP
- Size: 7.81 KB
- Stars: 105
- Watchers: 9
- Forks: 84
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`