Skip to content
/ lnmp Public
forked from khs1994-docker/lnmp

Start LNMP In less than 2 minutes Powered by Docker Compose. 使用 Docker Compose 一键搭建 LNMP 开发环境和生产环境!LNMP CaaS 解决方案

License

Notifications You must be signed in to change notification settings

zllz5230/lnmp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LNMP Docker

GitHub stars GitHub release Build Status GitHub (pre-)release license

Start LNMP In Less than 2 minutes Powered By Docker Compose.

LNMP Docker is supported on Linux, macOS, Windows 10 on x86_64, and Debian (Raspberry Pi3) on arm.

Prerequisites

To use LNMP Docker, you need:

Quick Start

Windows 10

Please see Windows 10.

Install

Pick one method install LNMP Docker.

  • using the convenience script

    $ curl -fsSL lnmp.khs1994.com -o lnmp.sh ; sh lnmp.sh
  • using git clone

    $ git clone --recursive https://github.com/khs1994-docker/lnmp.git
    
    # $ git clone --recursive [email protected]:khs1994-docker/lnmp.git
    
    # 中国镜像
    
    $ git clone --recursive https://code.aliyun.com/khs1994-docker/lnmp.git
    
    # $ git clone --recursive [email protected]:khs1994-docker/lnmp.git

Start

$ cd lnmp

$ ./lnmp-docker.sh development

$ curl 127.0.0.1

Welcome use khs1994-docker/lnmp v18.02 x86_64 With Pull Docker Image

development

Start PHP Project

Start PHP project(e.g, Laravel) in ./app/ folder, And edit nginx config file in ./config/nginx/yourfilename.conf.

# $ ./lnmp-docker.sh new

$ ./lnmp-docker.sh restart nginx

PHPer commands

  • lnmp-php

  • lnmp-composer

  • lnmp-phpunit

  • lnmp-laravel

  • ...

For more information please see Documents

Issue SSL certificate

Powered by acme.sh

$ ./lnmp-docker.sh ssl www.khs1994.com

Only Support dnspod.cn DNS,Please set API key and id in .env file. Support Self-Signed SSL certificate, for more information, see Documents.

List LNMP Container

$ docker container ls -a -f label=com.khs1994.lnmp

Use Self-Build Docker Image

Edit Dockerfile in ./dockerfile/*/Dockerfile, then exec ./lnmp-docker.sh build.

Restart

# Restart all container
$ ./lnmp-docker.sh restart

$ ./lnmp-docker.sh restart nginx php7

Stop

$ ./lnmp-docker.sh stop

Stop and remove

$ ./lnmp-docker.sh down

Changelog

Updates every month, Version name is YY.MM. For more release information about LNMP Docker Version, see Releases.

Run LNMP On Kubernets

For more information please see Documents

Overview

Features

Please see Documents.

What's inside

Name Docker Image Version Based
NGINX khs1994/nginx:1.13.9-tls1.3-stretch 1.13.9 Debian:stretch
Apache httpd:2.4.29-alpine 2.4.29 Alpine:3.6
MySQL mysql:8.0.3 8.0.3 Debian:jessie
MariaDB mariadb:10.3.4 10.3.4 Debian:jessie
Redis redis:4.0.8-alpine 4.0.8 Alpine:3.7
PHP-FPM khs1994/php-fpm:7.2.2-alpine3.7 7.2.2 Alpine:3.7
Laravel khs1994/php-fpm:7.2.2-alpine3.7 5.5 Alpine:3.7
Composer khs1994/php-fpm:7.2.2-alpine3.7 1.6.3 Alpine:3.7
Memcached memcached:1.5.4-alpine 1.5.4 Alpine:3.7
RabbitMQ rabbitmq:3.7.2-management-alpine 3.7.2 Alpine:3.7
PostgreSQL postgres:10.1-alpine 10.1 Alpine:3.6
MongoDB mongo:3.7.1 3.7.1 Debian:jessie
PHPMyAdmin phpmyadmin/phpmyadmin:latest latest Alpine:3.6
Registry registry:latest latest Alpine:3.4

Folder Structure

Folder description
app PHP project (HTML, PHP, etc)
backup backup database file
bin PHPer Commands
config configuration file
dockerfile Dockerfile
logs logs file
scripts bash shell script

Exposed Ports

  • 80
  • 443

CLI

Easy to generate nginx or apache config, etc. Please use ./lnmp-docker.sh.

Run in Production

Start Containers as a Service(CaaS). For more information, see Documents.

LinuxKit

# OS: macOS

$ cd linuxkit

$ linuxkit build lnmp.yml

$ linuxkit run -publish 8080:80/tcp lnmp

Open your Browers 127.0.0.1:8080

Who use in Production?

TLSv1.3

Default Support TLSv1.3.

CI/CD

Please see khs1994-docker/ci

Docker Daemon TLS

Please see khs1994-docker/dockerd-tls

Documents

https://doc.lnmp.khs1994.com

Contributing

Please see Contributing

Thanks

More Information

Donate

Please see https://zan.khs1994.com

About

Start LNMP In less than 2 minutes Powered by Docker Compose. 使用 Docker Compose 一键搭建 LNMP 开发环境和生产环境!LNMP CaaS 解决方案

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 64.1%
  • PowerShell 15.7%
  • Dockerfile 13.2%
  • PHP 6.6%
  • HTML 0.4%