All Projects → khs1994-docker → Lnmp

khs1994-docker / Lnmp

Licence: apache-2.0
💻 🐳 🐘 🐬 🐧 🚀 Start Docker LNMP(LEMP) In less than 2 minutes Powered by Docker Compose. 让 PHP 开发者快速(一键)搭建基于容器技术(Docker、Kubernetes)的开发、测试、生产(CI/CD by Drone)环境.

Projects that are alternatives of or similar to Lnmp

Lumen Microservice
Lumen on Docker - Skeleton project with Nginx, MySQL & PHP 7 | Aws ECS, Google Kubernates, Azure Container Engine
Stars: ✭ 183 (-46.33%)
Mutual labels:  laravel, devops, docker-compose
Cipi
An Open Source Control Panel for your Cloud! Deploy and manage LEMP apps in one click!
Stars: ✭ 376 (+10.26%)
Mutual labels:  laravel, lemp, devops
Opendevops
CODO是一款为用户提供企业多混合云、一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
Stars: ✭ 2,990 (+776.83%)
Mutual labels:  devops, ci, docker-compose
Larakube
Laravel app deployment for auto scaled Kubernetes cluster
Stars: ✭ 157 (-53.96%)
Mutual labels:  laravel, docker-compose
Dlaravel
Laravel and Docker
Stars: ✭ 108 (-68.33%)
Mutual labels:  laravel, docker-compose
Goodwork
Self hosted project management and collaboration tool powered by TALL stack
Stars: ✭ 1,730 (+407.33%)
Mutual labels:  laravel, docker-compose
Lnmp Docker
Docker for LNMP (CentOS7 + Nginx + MariaDB + PHP7 + Redis + Supervisor + WebSocket + Cron)
Stars: ✭ 221 (-35.19%)
Mutual labels:  laravel, lnmp
Devilbox
A modern Docker LAMP stack and MEAN stack for local development
Stars: ✭ 3,598 (+955.13%)
Mutual labels:  lemp, docker-compose
Wsl Docker Git Setup
Shell script to configure Windows Subsystem for Linux (WSL) & Ubuntu on Windows to use docker and docker-compose as well as a git-enabled prompt
Stars: ✭ 23 (-93.26%)
Mutual labels:  wsl, docker-compose
Vagrantfile
Vagrant 配置示例
Stars: ✭ 50 (-85.34%)
Mutual labels:  lnmp, lemp
LEMPer
LEMPer Stack is terminal-based LEMP / LNMP installer and manager for Debian & Ubuntu cloud or virtual server (vps) and on-premise (bare metal).
Stars: ✭ 171 (-49.85%)
Mutual labels:  lnmp, lemp
Manaphp
ManaPHP Framework: Swoole+FPM
Stars: ✭ 271 (-20.53%)
Mutual labels:  laravel, ci
Docker Laravel
🐳 Docker Images for Laravel development
Stars: ✭ 101 (-70.38%)
Mutual labels:  laravel, docker-compose
Porter
A docker based multi-site setup for local PHP development. Inspired by Laravel Valet, Homestead and Vessel.
Stars: ✭ 92 (-73.02%)
Mutual labels:  laravel, docker-compose
Laravel Docker K8s
Running Laravel project using Docker and Deploying using Kubernetes
Stars: ✭ 127 (-62.76%)
Mutual labels:  laravel, docker-compose
Rubel
Rubel is a cms built with Laravel and React.
Stars: ✭ 70 (-79.47%)
Mutual labels:  laravel, docker-compose
Piplin
📤 An open source self-hosted continuous integration and deployment system - QQ群: 656868
Stars: ✭ 1,044 (+206.16%)
Mutual labels:  laravel, devops
Previs
🎯 Testing your project locally in a clean environment.
Stars: ✭ 312 (-8.5%)
Mutual labels:  devops, ci
Dockerized lara
Build your Laravel App with Redis - Mongodb - MariaDB - Nginx - php7 - zsh
Stars: ✭ 9 (-97.36%)
Mutual labels:  laravel, docker-compose
Vessel
Up and running with small Docker environments
Stars: ✭ 1,006 (+195.01%)
Mutual labels:  laravel, docker-compose

LNMP Docker

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

star

💻 🐳 🐘 🐬 🐧 🚀 Start LNMP In Less than 2 minutes Powered By Docker Compose, one command $ ./lnmp-docker up

Platform Status
Windows Build status
Linux Build Status
macOS CI
Linux arm64v8 Build Status

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

⚠️ Don't Edit Any Files except .env Why ?

⚠️ Run Laravel on Docker For Windows very slow. solve it.

🎁 Donate

🐳 腾讯云 Kubernetes

WeChat

Welcome developer subscribe WeChat

Prerequisites

To use LNMP Docker, you need:

1️⃣ Git

2️⃣ Docker CE 19.03 Stable +

3️⃣ Docker Compose 1.27.0+

4️⃣ WSL (Windows Only)

Quick Start

Windows 10

Please see Windows 10.

Install

Use git install LNMP Docker.

$ git clone --depth=1 https://github.com/khs1994-docker/lnmp.git

# $ git clone --depth=1 [email protected]:khs1994-docker/lnmp.git

# 中国镜像

$ git clone --depth=1 https://gitee.com/khs1994-docker/lnmp.git

# $ git clone --depth=1 [email protected]:khs1994-docker/lnmp.git

Start LNMP Demo

$ cd lnmp

$ ./lnmp-docker up

$ curl 127.0.0.1

Welcome use khs1994-docker/lnmp v20.10 x86_64 With Pull Docker Image

development

💡 MySQL default root password mytest

Start PHP Project

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

# $ ./lnmp-docker new

$ ./lnmp-docker restart nginx

You can set APP_ROOT to change PHP project folder.

More information please see Docker PHP Best Practice https://github.com/khs1994-docker/php-demo

How to connect Services

$redis = new \Redis();

- $redis->connect('127.0.0.1',6379);
+ $redis->connect('redis', 6379);

- $pdo = new \PDO('mysql:host=127.0.0.1;dbname=test;port=3306','root','mytest');
+ $pdo = new \PDO('mysql:host=mysql,dbname=test,port=3306', 'root', 'mytest');

Advanced

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 ssl khs1994.com -d *.khs1994.com

Please set API key and id in .env file or System ENV. 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 build.

Restart

# Restart all container
$ ./lnmp-docker restart

$ ./lnmp-docker restart nginx php7

Stop

$ ./lnmp-docker stop

Stop and remove

$ ./lnmp-docker down

Overview

Features

Please see Documents.

What's inside

Name Docker Image Version Based
ACME.sh khs1994/acme:2.8.8 2.8.8 alpine:3.12
NGINX nginx:1.19.6-alpine 1.19.6 alpine:3.12
NGINX Unit khs1994/php:8.0.2-unit-alpine 1.22.0 alpine:3.12
HTTPD httpd:2.4.46-alpine 2.4.46 alpine:3.12
MySQL mysql:8.0.23 8.0.23 debian:buster-slim
MariaDB mariadb:10.5.8 10.5.8 ubuntu:focal
Redis redis:6.0.10-alpine 6.0.10 alpine:3.12
PHP-FPM khs1994/php:8.0.2-fpm-alpine 8.0.2 alpine:3.12
Composer khs1994/php:8.0.2-composer-alpine 2.0.9 alpine:3.12
Memcached memcached:1.6.9-alpine 1.6.9 alpine:3.12
RabbitMQ rabbitmq:3.8.11-management-alpine 3.8.11 alpine:3.11
PostgreSQL postgres:13.2-alpine 13.2 alpine:3.12
MongoDB mongo:4.4.3 4.4.3 ubuntu:bionic
PHPMyAdmin phpmyadmin:5.0.4 5.0.4 alpine:3.12
Registry registry:latest latest alpine:3.11

Folder Structure

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

Exposed Ports

  • 80
  • 443

CLI

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

Who use in Production?

khs1994.com

PCIT -- PHP CI TOOLKIT

HTTP3/QUIC

Please see https://github.com/khs1994-docker/lnmp/issues/895

CI/CD

Please see khs1994-docker/ci

Documents

https://docs.lnmp.khs1994.com

Contributing

Please see Contributing

Thanks

More Information

Donate

Please see https://zan.khs1994.com

Privacy

We send OS type and IP data to us data collection server, please set true (default) to help us improve.

You can edit .env file DATA_COLLECTION=false to disable it.

AD 🐳

腾讯云 Kubernetes

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].