Giter VIP home page Giter VIP logo

lemp's Introduction

LEMP: Linux | NGINX | MYSQP | PHP Docker Image

LEMP is a variation of the ubiquitous LAMP stack used for developing and deploying web applications. Traditionally, LAMP consists of Linux, Apache, MySQL, and PHP. Due to its modular nature, the components can easily be swapped out. With LEMP, Apache is replaced with the lightweight yet powerful Nginx.

![cbitterfield]cbitterfield logo

logo by Anna Maria Paliasna Weaver (c) 2019

This is a fully functional LEMP development environment with Secure Headers

This image is designed to be fully functional with data persitence.

Capabilities:

  • Start/Stop/Login script included for easy use
  • Supports TLS self signed and real
  • Allows for configuring database name, user and password via environment variables.
  • Allows doe SSH/SFTP access by password and by key
  • Includes a fully comprehensive example index.php to test LEMP functions
  • Includes support for secure headers in TLS
  • Fully documented scripts and docker file
  • Fully configurable logging and debugging
  • Fully configured with a seperate user and group for LEMP site (username = dev_site)
  • Single mount point for host
  • Uses docker volumes if not using host mount point

Environment variables

Variables:

  • LOG_LEVEL
  • LOG_STDOUT
  • MYSQL_DATABASE
  • MYSQL_USER
  • MYSQL_USER_PASS
  • MYSQL_ROOT_PASS
  • SITE_PASS
  • SSH_PUBLIC
  • TLS

Ports Exposed

Ports

  • 22 [SSH/SFTP]
  • 80 [http]
  • 443 [https]
  • 3603 [mysql]

service script (lemp_service.sh)

usage lemp_service.sh [start|stop|status|show_docker|login|clear]

Script passes through any locally set variables.

login option runs interactive bash shell clear option removes all containers in use

Article on the building of this image is available Full References available MEDIUM

Example DOCKER USAGE

docker run -it --name LEMP
-p "$HTTP_PORT":80 -p HTTPS_PORT:443 -p "$SSH_PORT":22 -p "$MYSQL_PORT":3306 --add-host "$WEBSITE":127.0.0.1
--env WEBSITE --env LOG_STDOUT --env LOG_LEVEL --env MYSQL_USER --env TLS --env MYSQL_USER_PASS
--env MYSQL_ROOT_PASS --env SITE_PASS --env SSH_PUBLIC --env MYSQL_DATABASE
-v $MOUNT_POINT:/data cbitterfield/lemp2:latest

lemp's People

Contributors

cbitterfield avatar

Watchers

James Cloos avatar  avatar

Forkers

ziscko

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.