Skip to content

A docker-compose of LEMP stack, separated on multiple containers

Notifications You must be signed in to change notification settings

preechaim/docker-lemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-lemp

A docker-compose of LEMP stack, separated on multiple containers.

Linux + NGINX(Engine-X) + MariaDB(MySQL fork) + PHP7

Instructions

  1. Install Docker Compose.
    https://docs.docker.com/compose/install/

  2. Clone this repository.

$ git clone https://github.com/preechaim/docker-lemp.git

  1. Edit docker-lemp/docker-compose.yml to assign your MySQL root password and new user

  2. Start server for the first time.

$ cd docker-lemp
$ docker-compose up -d

Test the server by opening your web browser to http://localhost or http://YOUR_SERVER_IP

  1. Make the server to auto start at boot. (for Linux)
    Open crontab file

$ crontab -e

Add a new line to the file.

@reboot cd ~/docker-lemp && /usr/local/bin/docker-compose up -d

Save, exit and reboot.

$ sudo reboot

Directories

  • html: Web server root
  • conf: Contains configuration files
  • mysql: Contains MySQL database files (create on first run)
  • logs: Contains NGINX logs (create on first run)

About

A docker-compose of LEMP stack, separated on multiple containers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages