All Projects → aogg → docker_lnmp

aogg / docker_lnmp

Licence: MIT license
一键部署基于docker的LAMP环境,并利用electron + vue 提供gui管理。+++ 可配置的多进程php扩展安装

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
shell
77523 projects
Dockerfile
14818 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to docker lnmp

12306-electron
🚄 electron-vue构建12306跨平台(Mac、Windows、Linux)客户端
Stars: ✭ 125 (+237.84%)
Mutual labels:  mac, electron-vue
Docker Lnmp
🔥 Mac/Linux Docker LNMP
Stars: ✭ 189 (+410.81%)
Mutual labels:  mac, lnmp
platform device id
flutter plugin to get device id
Stars: ✭ 32 (-13.51%)
Mutual labels:  mac
curry
curry is a framework built to enhance and compliment Foundation and UIKit.
Stars: ✭ 47 (+27.03%)
Mutual labels:  mac
mini-qml
Minimal Qt deployment for Linux, Windows, macOS and WebAssembly.
Stars: ✭ 44 (+18.92%)
Mutual labels:  mac
Tracker
Even the best of apps have their issues
Stars: ✭ 113 (+205.41%)
Mutual labels:  mac
aquaskk
An input method without morphological analysis.
Stars: ✭ 298 (+705.41%)
Mutual labels:  mac
COLLADAViewer2
An OBSOLETE instructional OS X application to load/display COLLADA Models and export to compact binary representations.
Stars: ✭ 48 (+29.73%)
Mutual labels:  mac
dockerfiles
Dockerfile文件集合
Stars: ✭ 34 (-8.11%)
Mutual labels:  lnmp
AndroidToRN
原生android中嵌入React Native
Stars: ✭ 95 (+156.76%)
Mutual labels:  mac
Quickeys
A mac menu bar app that provides note taking functionality though a quick dropdown menu.
Stars: ✭ 54 (+45.95%)
Mutual labels:  mac
Notarize
Notarization status monitoring tool for macOS, supporting multiple developer accounts.
Stars: ✭ 90 (+143.24%)
Mutual labels:  mac
management tools
A collection of scripts and packages to simplify OS X management.
Stars: ✭ 93 (+151.35%)
Mutual labels:  mac
cliptext
Clipboard manager for macOS. Built with Electron.js
Stars: ✭ 37 (+0%)
Mutual labels:  mac
syncTabs
Sync your firefox tabs with Safari on iOS
Stars: ✭ 25 (-32.43%)
Mutual labels:  mac
ukrainian-typographic-keyboard
Combined Ukrainian keyboard layout with typographic symbols
Stars: ✭ 356 (+862.16%)
Mutual labels:  mac
Open-iTerm-or-Terminal-Here...
Generates an Applescript app that you can put in your Finder toolbar which will open an iTerm or Terminal tab at the current directory.
Stars: ✭ 122 (+229.73%)
Mutual labels:  mac
Anytranslate
💭 Translate words from and to your language, anywhere.
Stars: ✭ 17 (-54.05%)
Mutual labels:  mac
dotfiles
my personal dotfiles mac
Stars: ✭ 39 (+5.41%)
Mutual labels:  mac
Installer
A simple standalone program which automates the installation, removal and maintenance of BetterDiscord.
Stars: ✭ 1,391 (+3659.46%)
Mutual labels:  mac

基于docker的LNMP环境

npm npm npm npm npm npm npm

说明

一个基于docker的LNMP环境,并利用electron + vue 提供gui管理(目前只处理了window环境和mac环境,后续支持linux)


其中gui界面通过electron+webpack+vue+babel实现。

使用

  • npm打开
git clone https://github.com/aogg/docker_lnmp.git
cd electron
npm install --registry=https://registry.npm.taobao.org
npm start
  • 首次点击构建,构建docker容器
    github

  • 再点击启动按钮,启动php环境

  • 其中xdebug需要额外配置127.0.0.1 host_localhost的hosts配置

容器配置

各容器放在docker文件夹内,对应配置也在容器文件夹的conf文件夹
其中php、nginx的conf文件夹实现共享目录,可本地修改并在容器内及时体现出 如:
1、docker/php/conf/conf/php.ini
2、docker/php/conf/etc/php-fpm.conf
3、docker/nginx/conf/nginx.conf

其中sources.list是通过COPY过去,所以如要修改必须重新构建所有容器


多进程安装扩展

  • 1、PHP扩展安装相关目录为docker/php/src/,对应容器内路径为/usr/local/php-ext/。

  • 2、config.json为所有扩展的配置文件
    可配置参数:

{
	"EXT_INSTALL" : "是否安装",
	"EXT_NAME"    : "扩展名称",
	"EXT_URL"     : "扩展下载地址",
	"EXT_TGZ_DIR" : "不下载直接用本地目录",
	"EXT_DEPEND"  : "扩展对应依赖",
	"EXT_ARG"     : "扩展编译时参数",
	"EXT_EVAL"    : "扩展下载完成后执行的代码",
	"EXT_DESC"    : "扩展描述"
},
  • 3、install.json为本次构建(build)时需要安装的扩展
  • 4、php-ext.sh为安装PHP扩展的核心多线程shell脚本。平时在容器内可通过下面方式直接安装指定的多个扩展
bash /usr/local/php-ext.sh memcached-2.2.0 xdebug-2.4.0
  • 5、最大并发安装PHP扩展的数量,默认值为15。

打包

放在electron/app/dist目录下

npm run pack

各截图

主界面截图
主界面截图

mini安装多个扩展时间
github

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].